mvtnorm 无法在 MS r-client 版本 3.4.3 中加载
mvtnorm fails to load in MS r-client version 3.4.3
尝试在 Windows 中的 MS R-Client 中加载库系列时,我收到以下消息:
库序列化加载失败并显示以下消息:
library(seriation) # package for reordering a distance matrix
Error: package or namespace load failed for ‘seriation’ in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]):
there is no package called ‘mvtnorm’ In addition: Warning message:
package ‘seriation’ was built under R version 3.4.4
mvtnorm 的当前版本 1.0-9 需要 r 版本 3.5 或更高版本。我已经尝试从几个版本的源代码安装包,以及从这里的源代码安装几个版本:https://cran.r-project.org/src/contrib/Archive/mvtnorm/
这些尝试的错误消息是:
installing source package 'mvtnorm' ...
** package 'mvtnorm' successfully unpacked and MD5 sums checked
** libs Warning: running command 'make -f "C:/PROGRA~1/MIE74D~1/RCLIEN~1/R_SERVER/etc/x64/Makeconf" -f
"C:/PROGRA~1/MIE74D~1/RCLIEN~1/R_SERVER/share/make/winshlib.mk"
SHLIB="mvtnorm.dll" SHLIB_LIBADD='$(FLIBS)' WIN=64 TCLBIN=64
OBJECTS="C_FORTRAN_interface.o miwa.o mvt.o mvtnorm-init.o tvpack.o"'
had status 127 ERROR: compilation failed for package 'mvtnorm'
removing 'D:/Users/KNel/Documents/R/win-library/3.4/mvtnorm' In R CMD
INSTALL Warning messages: 1: running command
'"C:/PROGRA~1/MIE74D~1/RCLIEN~1/R_SERVER/bin/x64/R" CMD INSTALL -l
"D:\Users\KNel\Documents\R\win-library.4"
"C:/Users/KNel/AppData/Local/Temp/RtmpQRtAJK/downloaded_packages/mvtnorm_1.0-6.tar.gz"'
had status 1 2: In utils::install.packages(...) : installation of
package
‘C:/Users/KNel/AppData/Local/Temp/RtmpQRtAJK/downloaded_packages/mvtnorm_1.0-6.tar.gz’
had non-zero exit status
有什么想法吗?
mvtnorm
从 1.0.9 开始需要 R >= 3.5.0(每个包信息 https://cran.r-project.org/web/packages/mvtnorm/index.html)
因此,如果您尝试为 R 3.4.3 安装它,则需要 mvtnorm
版本 1.0.8,可从 CRAN 存档中获得:
install.packages("https://cran.r-project.org/src/contrib/Archive/mvtnorm/mvtnorm_1.0-8.tar.gz", repos=NULL)
参考:https://www.rdocumentation.org/packages/mvtnorm/versions/1.0-8
尝试在 Windows 中的 MS R-Client 中加载库系列时,我收到以下消息:
库序列化加载失败并显示以下消息:
library(seriation) # package for reordering a distance matrix Error: package or namespace load failed for ‘seriation’ in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]): there is no package called ‘mvtnorm’ In addition: Warning message: package ‘seriation’ was built under R version 3.4.4
mvtnorm 的当前版本 1.0-9 需要 r 版本 3.5 或更高版本。我已经尝试从几个版本的源代码安装包,以及从这里的源代码安装几个版本:https://cran.r-project.org/src/contrib/Archive/mvtnorm/
这些尝试的错误消息是:
installing source package 'mvtnorm' ... ** package 'mvtnorm' successfully unpacked and MD5 sums checked ** libs Warning: running command 'make -f "C:/PROGRA~1/MIE74D~1/RCLIEN~1/R_SERVER/etc/x64/Makeconf" -f "C:/PROGRA~1/MIE74D~1/RCLIEN~1/R_SERVER/share/make/winshlib.mk" SHLIB="mvtnorm.dll" SHLIB_LIBADD='$(FLIBS)' WIN=64 TCLBIN=64 OBJECTS="C_FORTRAN_interface.o miwa.o mvt.o mvtnorm-init.o tvpack.o"' had status 127 ERROR: compilation failed for package 'mvtnorm'
removing 'D:/Users/KNel/Documents/R/win-library/3.4/mvtnorm' In R CMD INSTALL Warning messages: 1: running command '"C:/PROGRA~1/MIE74D~1/RCLIEN~1/R_SERVER/bin/x64/R" CMD INSTALL -l "D:\Users\KNel\Documents\R\win-library.4" "C:/Users/KNel/AppData/Local/Temp/RtmpQRtAJK/downloaded_packages/mvtnorm_1.0-6.tar.gz"' had status 1 2: In utils::install.packages(...) : installation of package ‘C:/Users/KNel/AppData/Local/Temp/RtmpQRtAJK/downloaded_packages/mvtnorm_1.0-6.tar.gz’ had non-zero exit status
有什么想法吗?
mvtnorm
从 1.0.9 开始需要 R >= 3.5.0(每个包信息 https://cran.r-project.org/web/packages/mvtnorm/index.html)
因此,如果您尝试为 R 3.4.3 安装它,则需要 mvtnorm
版本 1.0.8,可从 CRAN 存档中获得:
install.packages("https://cran.r-project.org/src/contrib/Archive/mvtnorm/mvtnorm_1.0-8.tar.gz", repos=NULL)
参考:https://www.rdocumentation.org/packages/mvtnorm/versions/1.0-8