yihui 我运行了一下这两行代码:
.Platform
$OS.type
[1] "windows"
$file.sep
[1] "/"
$dynlib.ext
[1] ".dll"
$GUI
[1] "RStudio"
$endian
[1] "little"
$pkgType
[1] "win.binary"
$path.sep
[1] ";"
$r_arch
[1] "x64"
list.files(system.file('libs', package = 'xfun'), recursive = TRUE)
[1] "x64/symbols.rds" "x64/xfun.dll"
看上去好像没什么问题。
我几天前把包的安装路径和加载路径统一成一个路径了,现在包安装路径是这个:
.libPaths()
[1] "D:/APP/R-4.2.1/library"
后来又安装了Rtools
我不知道这会不会有影响,比如r包安装目录权限方面的问题,导致rstudio无法识别某些DLL“R包”。
今天我重新安装AnnotationDbi
install.packages("D:/R_packages/AnnotationDbi",repos=NULL, type="source",denpendencies=T)
Error: package or namespace load failed for ‘AnnotationDbi’:
loadNamespace()里算'zlibbioc'时.onLoad失败了,详细内容:
调用: inDL(x, as.logical(local), as.logical(now), ...)
错误: unable to load shared object 'D:/APP/R-4.2.1/library/zlibbioc/libs/x64/zlib1bioc.dll':
LoadLibrary failure: 找不到指定的模块。
library(zlibbioc)
Error: package or namespace load failed for ‘zlibbioc’:
loadNamespace()里算'zlibbioc'时.onLoad失败了,详细内容:
调用: inDL(x, as.logical(local), as.logical(now), ...)
错误: unable to load shared object 'D:/APP/R-4.2.1/library/zlibbioc/libs/x64/zlib1bioc.dll':
LoadLibrary failure: 找不到指定的模块。
if (!require("BiocManager", quietly = TRUE))
install.packages("BiocManager")
BiocManager::install("zlibbioc",force = TRUE)
安装成功
这次我没有用install.packages("D:/R_packages/AnnotationDbi",repos=NULL, type="source",denpendencies=T)
所以也没有出现这种报错:
Error in library.dynam(lib, package, package.lib) :
DLL 'XVector' not found: maybe not installed for this architecture?
但有另一种报错/(ㄒoㄒ)/~:
if (!require("BiocManager", quietly = TRUE))
install.packages("BiocManager")
BiocManager::install("AnnotationDbi",force = TRUE)
Warning messages:
1: In loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[]) :
package ‘stringi’ has no 'package.rds' in Meta/
2: In loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[]) :
package ‘stringi’ has no 'package.rds' in Meta/
'getOption("repos")' replaces Bioconductor standard
repositories, see '?repositories' for details
replacement repositories:
CRAN: https://mirrors.sustech.edu.cn/CRAN/
Warning: URL 'https://mirrors.sustech.edu.cn/CRAN/src/contrib/PACKAGES.rds': status was 'Failure when receiving data from the peer'