error while installing " BSgenome.Hsapiens.UCSC.hg19"
1
3
Entering edit mode
@pegahtaklifi-24293
Last seen 2.6 years ago
Iran

Hello I am trying to install BSgenome.Hsapiens.UCSC.hg19 on Rstudio with R version 4.0.3 using the command below

BiocManager::install("BSgenome.Hsapiens.UCSC.hg19")

I get an error and several warning messages

Error in download.file(url, destfile, method, mode = "wb", ...) : 
  download from 'https://bioconductor.org/packages/3.12/data/annotation/src/contrib/BSgenome.Hsapiens.UCSC.hg19_1.4.3.tar.gz' failed
In addition: Warning messages:
1: In download.file(url, destfile, method, mode = "wb", ...) :
  downloaded length 48644749 != reported length 710245413
2: In download.file(url, destfile, method, mode = "wb", ...) :
  URL 'https://bioconductor.org/packages/3.12/data/annotation/src/contrib/BSgenome.Hsapiens.UCSC.hg19_1.4.3.tar.gz': Timeout of 60 seconds was reached
Warning in download.packages(pkgs, destdir = tmpd, available = available,  :
  download of package ‘BSgenome.Hsapiens.UCSC.hg19’ failed
Old packages: 'nlme'

I wonder how I could solve this I would really appreciate your help

BSgenome.Hsapiens.UCSC.hg19 • 6.0k views
ADD COMMENT
5
Entering edit mode
@martin-morgan-1513
Last seen 4 months ago
United States

The key part of the error is actual in the warning

Timeout of 60 seconds was reached

and the solution is to increase the timeout documented on ?download.file with

options(timeout = 300)  # is 5 minutes enough?

and then trying again

BiocManager::install("BSgenome.Hsapiens.UCSC.hg19")
ADD COMMENT
0
Entering edit mode

Thank you! so I found out my internet is really slow today so I downloaded the package separately and installed it manually in R. all fine

ADD REPLY
0
Entering edit mode

Thanks, @martin-morgan-1513. This helped download it.

ADD REPLY
0
Entering edit mode

Yes, this worked

ADD REPLY

Login before adding your answer.

Traffic: 958 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