How to specify a version of the wanted package ?
2
1
Entering edit mode
celine.labbe ▴ 20
@celinelabbe-23002
Last seen 4.6 years ago

Hi,

I need to use an old protocol that use GenomicRanges 1.28.3 with R 3.4.0.

I have this R version and genomicRanges 1.30.3.

Is there anyway to specify which version of the package we want to install please ?

I read this page : https://www.bioconductor.org/install/ (Legacy and Older R Versions) and I search on internet but I did not find how to specify the version of the package.

Thanks a lot for your help. Regards

Céline

"genomicranges" "R" • 422 views
ADD COMMENT
1
Entering edit mode
Mike Smith ★ 6.5k
@mike-smith
Last seen 4 hours ago
EMBL Heidelberg

You can get GenomicRanges 1.28.6 from https://bioconductor.org/packages/3.5/bioc/html/GenomicRanges.html

I'm not sure it's possible to get 1.28.3 without checking the code out from the Bioconductor git repository, rolling it back to the appropriate point in time, and then building the package from source.

Both Bioconductor versions 3.5 and 3.6 were intended to be used with R 3.4, which is why you have ended up with the slightly more recent version of GenomicRanges. You can try and force the installation of the older version with:

install.packages('https://bioconductor.org/packages/3.5/bioc/src/contrib/GenomicRanges_1.28.6.tar.gz', repos = NULL)

However, be aware that all the other installed packages will be slightly newer than GenomicRanges, so there's a non-zero chance things won't work as expected. Perhaps someone else will have a better suggestion for making sure all the packages are inline with one another.

ADD COMMENT
1
Entering edit mode
celine.labbe ▴ 20
@celinelabbe-23002
Last seen 4.6 years ago

Thanks for your quick answer !

Unfortunetly, It doesn't work. Here's the error :

** R
** inst
** preparing package for lazy loading
Error in rematchDefinition(definition, fdef, mnames, fnames, signature) : 
  methods can add arguments to the generic ‘seqinfo<-’ only if '...' is an argument to the generic
Error : unable to load R code in package ‘GenomicRanges’
ERROR: lazy loading failed for package ‘GenomicRanges’
* removing ‘/bioinfo/users/clabbe/R/x86_64-pc-linux-gnu-library/3.4/GenomicRanges’
Warning message:
In install.packages("https://bioconductor.org/packages/3.5/bioc/src/contrib/GenomicRanges_1.28.6.tar.gz",  :
  installation of package ‘/.../RtmpHq2pKF/downloaded_packages/GenomicRanges_1.28.6.tar.gz’ had non-zero exit status

I think it's what you said, all version of dependancies are not inline with one another...

Regards

Céline

ADD COMMENT

Login before adding your answer.

Traffic: 569 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6