org.Hs.eg.db,Error: could not find function ".libPath"
1
0
Entering edit mode
yt_lei1998 • 0
@3f470ea9
Last seen 23 months ago
China

I try to install org.Hs.eg.db,but it warms there have

BiocManager::install("org.Hs.eg.db") 'getOption("repos")' replaces Bioconductor standard repositories, see '?repositories' for details

replacement repositories: CRAN: https://mirrors.tuna.tsinghua.edu.cn/CRAN/

Bioconductor version 3.14 (BiocManager 1.30.16), R 4.1.3 (2022-03-10) Installing package(s) 'org.Hs.eg.db' 安装源码包‘org.Hs.eg.db’

trying URL 'https://bioconductor.org/packages/3.14/data/annotation/src/contrib/org.Hs.eg.db_3.14.0.tar.gz' Content type 'application/x-gzip' length 82195112 bytes (78.4 MB) downloaded 1.7 MB

错误: 没有".libPath"这个函数 停止执行

The downloaded source packages are in ‘C:\Users\86151\AppData\Local\Temp\RtmpKioutl\downloaded_packages’ Old packages: 'limma', 'lme4', 'magrittr', 'MASS', 'Matrix', 'mgcv', 'nlme', 'plyr', 'polynom', 'processx', 'RColorBrewer', 'Rcpp', 'RcppArmadillo', 'RcppEigen', 'readxl', 'rprojroot', 'RSQLite', 'S4Vectors', 'sass', 'survMisc', 'testthat', 'tidygraph', 'tinytex', 'tzdb', 'vctrs' Update all/some/none? [a/s/n]: n Warning messages: 1: In .inet_warning(msg) : downloaded length 1773568 != reported length 82195112 2: In .inet_warning(msg) : installation of package ‘org.Hs.eg.db’ had non-zero exit status

org.Hs.eg.db • 1.2k views
ADD COMMENT
1
Entering edit mode
Robert Castelo ★ 3.1k
@rcastelo
Last seen 22 hours ago
Barcelona/Universitat Pompeu Fabra

hi, I think the problem might be that the default timeout for the download.file() function from R is too small (60 seconds) for your internet connection; see the help page of download.file here, in section Details, where it says "The timeout for many parts of the transfer can be set by the option timeout which defaults to 60 seconds. This is often insufficient for downloads of large files (50MB or more) and so should be increased when download.file is used in packages to do so". So, simply try to increase this limit by typing:

options(timeout = max(300, getOption("timeout")))

and then try again calling BiocManager::install("org.Hs.eg.db"). If this still gives the same error, increase from 300 to 600 and try again.

ADD COMMENT

Login before adding your answer.

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