Skip to content

lock a package to specific R version

5 messages · Brian Ripley, Mehmet Suzen, Uwe Ligges

#
On 25.10.2011 11:42, Mehmet Suzen wrote:
Intervals are possible., and you can restrict them to one version as 
follows:

Depends: R (>= 2.13.2), R (<= 2.13.2)

Uwe Ligges
#
On Wed, 26 Oct 2011, Uwe Ligges wrote:

            
Or even use ==

The point of the footnote is that install.packages() will download a 
package only checking any >= requirements (and I suspect it will then 
install a binary version of a package).  R CMD INSTALL will not 
install it from the sources, and library() will not load it.

I don't see why you would want to do this: why would a package work 
with 2.13.1 and not 2.13.2, or 2.13.2 and not 2.14.0?  Ranges may make 
sense.

  
    
#
Dear Professor Ripley,

Thank you for the reply. We are maintaining 
Internal R packages and build binaries for different
versions of R base, ranging from 2.8.x to 2.13.x
We need to prevent users using "wrong" versions, but
the ones we tested. (we distribute binaries only and package
source base is evolving as well)

Not sure how to address this, initially I was thinking
to put R version in the package version, but package version 
in description files only allows x.x.x format which doesn't
give a room.
Ranges would be much more sensible then "==".

Best Regards,

Mehmet
LEGAL NOTICE
This message is intended for the use o...{{dropped:10}}
#
On 26.10.2011 15:12, Mehmet Suzen wrote:
No, you can have more, if you really want to.
Do go ahead with my suggestion.

Best wishes,
Uwe