Question: how to install AnnotationHub_2.4.2
gravatar for nakanomasayuki265
13 months ago by
nakanomasayuki2650 wrote:

I would like to install older version AnnotationHub_2.4.2 under R version 3.3.0 or R version 3.3.3.

But package ‘AnnotationHub_2.4.2’ is not available (for R version 3.3.0).

Now AnnotationHub_2.6.4 is installed.

How can I install older version of AnnotationHub ?



ADD COMMENTlink modified 12 months ago by Martin Morgan ♦♦ 22k • written 13 months ago by nakanomasayuki2650

Why do you need an older version? Perhaps AnnotationHub::snapshotDate() will help, or perhaps the resource that you are after is simply no longer available?

ADD REPLYlink written 12 months ago by Martin Morgan ♦♦ 22k
gravatar for James W. MacDonald
13 months ago by
United States
James W. MacDonald46k wrote:

Bioconductor packages are tightly associated with the R version. If you want to use an older version of any package, you have to use the correct version of R. Unfortunately, R is released yearly and Bioc is semi-annually, so you are asking for a version of AnnotationHub that corresponds to Bioc 3.3, which was the first version of Bioconductor for R-3.3.x. Simply installing R-3.3.0 and using biocLite will get you AnnotationHub 2.6.4, as you have noted. So we have to be a bit tricky.

You can either uninstall BiocInstaller (using remove.packages), or just install a clean version of R-3.3.0, and install BiocInstaller by hand (here I am using my Windows box. You need to point to the correct version of the package for your OS).

> install.packages("", repos=NULL)
trying URL ''
Content type 'application/zip' length 119756 bytes (116 KB)
downloaded 116 KB

package ‘BiocInstaller’ successfully unpacked and MD5 sums checked

> library(BiocInstaller)
Bioconductor version 3.3 (BiocInstaller 1.22.3), ?biocLite for help
A newer version of Bioconductor is available for this version of R,
  ?BiocUpgrade for help
> biocLite("AnnotationHub")
Using Bioconductor 3.3 (BiocInstaller 1.22.3), R 3.3.0 (2016-05-03).
Installing package(s) ‘AnnotationHub’
trying URL ''


ADD COMMENTlink written 13 months ago by James W. MacDonald46k

Thank you for replying my question.

I used Yosemite macOS10.10.5.

>install.packages("", repos=NULL)
downloaded 0 bytes

Warning in install.packages :
  URL '': status was '404 Not Found'
Error in download.file(p, destfile, method, mode = "wb", ...) : 
  cannot download all files
Error in install.packages : type == "both" cannot be used with 'repos = NULL'

I tried mavericks instead of yosemite, but failed.

How should I do to solve this problem?

ADD REPLYlink written 13 months ago by nakanomasayuki2650
gravatar for Martin Morgan
12 months ago by
Martin Morgan ♦♦ 22k
United States
Martin Morgan ♦♦ 22k wrote:

Make sure you have removed all versions of BiocInstaller

R --vanilla
> remove.packages("BiocInstaller")  # repeat until R says "there is no pacakge called 'BiocInstaller'

Start a new R session and install the default BiocInstaller

R --vanilla
> source("")

Downgrade BiocInstaller

> BiocInstaller::useDevel(FALSE)

You'll now have BiocInstaller 1.22.3.

> BiocInstaller::biocLite("AnnotationHub")

will install the version of AnnnotationHub you are looking for.

ADD COMMENTlink written 12 months ago by Martin Morgan ♦♦ 22k
Please log in to add an answer.


Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 2.2.0
Traffic: 241 users visited in the last hour