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")