不存在叫‘GO.db’这个名字的程辑包

library(WGCNA)
载入需要的程辑包:dynamicTreeCut
载入需要的程辑包:fastcluster

载入程辑包:‘fastcluster’

The following object is masked from ‘package:stats’:

    hclust

Error: package or namespace load failed for ‘WGCNA’ in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]):
 不存在叫‘GO.db’这个名字的程辑包
library(GenomeInfoDbData)
library('Rcpp')

if (!require("BiocManager", quietly = TRUE))
install.packages("BiocManager")
BiocManager::install("WGCNA")
library(WGCNA)
Error: package or namespace load failed for ‘WGCNA’ in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]):
 不存在叫‘GO.db’这个名字的程辑包
BiocManager::install("GO.db")
'getOption("repos")' replaces Bioconductor standard repositories, see 'help("repositories", package = "BiocManager")' for details.
Replacement repositories:
    CRAN: https://cran.rstudio.com/
Bioconductor version 3.16 (BiocManager 1.30.23), R 4.2.3 (2023-03-15 ucrt)
Installing package(s) 'GO.db'
安装源码包‘GO.db’

trying URL 'https://bioconductor.org/packages/3.16/data/annotation/src/contrib/GO.db_3.16.0.tar.gz'
Content type 'application/gzip' length 29540685 bytes (28.2 MB)
downloaded 2.3 MB

Error in download.file(url, destfile, method, mode = "wb", ...) : 
  download from 'https://bioconductor.org/packages/3.16/data/annotation/src/contrib/GO.db_3.16.0.tar.gz' failed
In addition: Warning messages:
1: In download.file(url, destfile, method, mode = "wb", ...) :
  downloaded length 2424832 != reported length 29540685
2: In download.file(url, destfile, method, mode = "wb", ...) :
  URL 'https://mghp.osn.xsede.org/bir190004-bucket01/archive.bioconductor.org/packages/3.16/data/annotation/src/contrib/GO.db_3.16.0.tar.gz': Timeout of 300 seconds was reached
Warning in download.packages(pkgs, destdir = tmpd, available = available,  :
  下载程序包‘GO.db’时出了问题
Old packages: 'broom', 'cachem', 'data.table', 'fastmap', 'openssl', 'ragg', 'rmarkdown', 'stringi', 'vegan', 'cluster', 'foreign', 'KernSmooth',
  'lattice', 'mgcv', 'nlme', 'nnet', 'rpart', 'survival'
Update all/some/none? [a/s/n]: 

解决方法:

复制报错信息中:https://bioconductor.org/packages/3.16/data/annotation/src/contrib/GO.db_3.16.0.tar.gz

下载到本地

Tools→install.packages→Browse→选择下载的文件→install即可

验证:

library("GO.db")

  • 4
    点赞
  • 8
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值