安装org.Mm.eg.db包时(全部包已更新至最新版本),出现一连串的类似错误:
error: DLL 'r包名' not found: maybe not installed for this architecture?
不知是什么原因,下面是安装过程
安装"org.Mm.eg.db"包:
library(BiocManager)
BiocManager::install ("org.Mm.eg.db")
*installing sourcepackage 'org.Mm.eg.db' ...
** using staged installation
** R
** inst
** byte-compile and prepare package for lazy loading
Error: package or namespace load failed for 'AnnotationDbi':
onLoad failed in loadNamespace() for 'RSQLite', details:
call: library.dynam(lib, package, package.lib)
error: DLL 'cachem' not found: maybe not installed for this architecture?
Execution halted
ERROR: lazy loadingfailed for package 'org.Mm.eg.db'
*removing 'D:/APP/R-4.2.1/library/org.Mm.eg.db'
Warning:安装程序包‘org.Mm.eg.db'时退出狀態的值不是0
下载的程序包在
'C:\Users\86157\AppData\Local\Temp\Rtmpa0yo0u\downloaded_packages'里
然后重新安装cachem包(应该是成功了):
install.packages("D:/R_packages/cachem",repos=NULL, type="source")
library(cachem)
Warning messages:
1: In loadNamespace(i,c(lib.loc,.libPaths()),versionCheck = vl[[i]]) : package 'stringi' has no 'package.rds' in Meta/
2: In loadNamespace(i, c(lib.loc,.libPaths()), versionCheck = vl[[i]]) : package ‘stringi' has no 'package.rds' in Meta
然后再重新安装AnnolalionDbi包:
install.packages("D:/R_packages/AnnotationDbi",repos=NULL, type="source")
*installing source package 'AnnotationDbi' ...
using staged installation
**R
** inst
** byte-compile and prepare package for lazy loading
Error in library.dynam(lib, package, package.lib) :
DLL 'png' not found: maybe not installed for this architecture?
Calls: ...namespacelmportFrom -> asNamespace ->loadNamespace -> library.dynam
Execution halted
ERROR: lazy loading failed for package 'AnnotationDbi'
removing 'D:/APP/R-4.2.1/library/AnnotationDbi'
restoring previous 'D:/APP/R-4.2.1/library/AnnotationDbi'
加载"png"包:
library(png)
Error: package or namespace load failed for 'png' in library.dynamilib package, package.lib): 没有这个DL‘png':是不是没有为此架构安装?
In addition:
Warning message: 程序包‘png'是用R版本4.2.2来建造的
无奈,重新安装png包(应该是成功了) :
install.packages("png")
library(png)
Warning m 程辑包"png"是用R版本4.2.2来建造的
然后再次重新安装'AnnotationDbi包:
installpackages("D:/R_packages/AnnotationDbi",repos=NULl, type="source"
* installing source package 'AnnotationDbi' ...
** using staged installation
** R
**inst
** byte-compile and prepare package for lazy loading
Error in library.dynam(lib, package, package.lib):
DLL 'bitops' not found: maybe not installed for this architecture?
Calls: ...namespacelmportFrom ->asNamespace->loadNamespace -> library.dynam
Execution halted
ERROR: lazy loading failed for package 'AnnotationDbi'
removing 'D:/APP/R-4.2.1/library/AnnotationDbi'
restoring previous 'D:/APP/R-4.2.1/library/AnnotationDbi'
Warning in install.packages :
安装程序包‘D:/R_packages/AnnotationDbi'时退出狀態的值不是0
发现又有一个bitops包出问题了,加载此包发现又出现了和“png”包同样的问题,感觉自己陷入了一个死循环,好像要把之前安装好的所有包重新安装一遍的感觉,我对此深感疑感,不知哪里出现了问题。
我的包安装路径:
libPaths()
[1] "D:/APP/R-4.2.1/library"
我的系统环境:
sessioninfo()
R version 4.2.1(2022-06-23 ucrt) Platform:x86_64-w64-mingw32/x64(64-bit) Running under: Windows 10 x64 (build 19044) Matrix products: default locale: [1] LC_COLLATE=Chinese(Simplified)_China.utf8 [2]LC_CTYPE=Chinese(Simplified)_China.utf8 [3] LC_MONETARY=Chinese(Simplified)_China.utf8 [4] LC NUMERIC=C [5] LC_TIME=Chinese(Simplified)_China.utf8 attached base packages: [1] stats graphics grDevices utils datasets [6]methods base other attached packages: [1]png_0.1-8cachem_1.0.6 loaded via a namespace(and not attached): [1]Rcpp_1.0.9 rstudioapi 0.14 [3] knitr_1.41 magrittr 2.0.3 [5]tidyselect_1.2.0 R6_2.5.1 [7]rlang_1.0.6 fastmap_1.1.0 [9]fansi 1.0.3 dplyr_1.0.10 [11]tools_4.2.1 data.table 1.14.6 [13]xfun_0.36 utf81.2.2 [15]cli 3.6.0 DBI 1.1.3 [17]digest_0.6.31 assertthat 0.2.1 [19]tibble_3.1.8 lifecycle_1.0.3 [21] BiocManager_1.30.19 vctrs_0.5.1 [23]glue_1.6.2 evaluate 0.19 [25]compiler_4.2.1pillar_1.8.1 [27]generics 0.1.3 pkgconfig 2.0.3