Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

R how to install a specified version of a bioconductor package?

The current version of the package I would like to use is failing on bioconductor. Yet, the old version used to work.
I am wondering how one can install a specific version of a bioconductor package?
Thanks in advance.

In my case, the package is called biomaRt and the failing version is 2.34.2 while 2.34.0 is successful.

like image 706
anilbey Avatar asked Mar 26 '18 08:03

anilbey


People also ask

How do I load a specific version of a package in R?

To install a specific version of a package, we need to install a package called “remotes” and then load it from the library. Afterwards we can use install_version() by specifying the package name and version needed as shown below.

How do I find the Bioconductor version in R?

Remember, you can check the Bioconductor version using the function biocVersion() from the BiocInstaller package.

What version is my Bioconductor?

The current release of Bioconductor is version 3.15; it works with R version 4.2.


1 Answers

Bioconductor stores the package archives here: https://bioconductor.org/packages/3.6/bioc/src/contrib/Archive/

1) Locate and download the version you would like to install.
2) Install it using R CMD INSTALL yourpackage_version_x.y.z.tar.gz as suggested by Eugène Adell in the comments.
If you cannot find the specific version on the bioconductor archive, then try to find it on the github repository of the package.

like image 93
anilbey Avatar answered Sep 23 '22 23:09

anilbey