如何安装旧版Caret(安装.tar.gz时遇到麻烦)?

时间:2016-03-29 10:37:28

标签: r r-caret

我正在运行R 3.2.2,我希望保留此版本(自定义版本)。 Caret包的最新版本不支持我的,所以我必须在插入的网站上安装一个旧的:例如caret_5.17-7.tar

当我在RStudio上运行安装时出现此错误:

Installing package into ‘C:/Users/Fsociety/Documents/R/win-library/3.2’
(as ‘lib’ is unspecified)
Warning in strptime(xx, f <- "%Y-%m-%d %H:%M:%OS", tz = tz) :
unable to identify current timezone 'M':
please set environment variable 'TZ'
Warning in strptime(xx, f <- "%Y-%m-%d %H:%M:%OS", tz = tz) :
unknown timezone 'localtime'
* installing *source* package 'caret' ...
** package 'caret' successfully unpacked and MD5 sums checked
** libs
Warning: running command 'make -f "C:/PROGRA~1/RRO/RRO-32~1.0/R-      32~1.2/etc/x64/Makeconf" -f "C:/PROGRA~1/RRO/RRO-32~1.0/R-  32~1.2/share/make/winshlib.mk" SHLIB="caret.dll" WIN=64 TCLBIN=64 OBJECTS="caret.o"' had status 127
ERROR: compilation failed for package 'caret'
* removing 'C:/Users/Fsociety/Documents/R/win-library/3.2/caret'
Warning in install.packages :
running command '"C:/PROGRA~1/RRO/RRO-32~1.0/R-32~1.2/bin/x64/R" CMD INSTALL -l "C:\Users\Fsociety\Documents\R\win-library\3.2" "C:/Users/Fsociety/Desktop/caret_5.17-7.tar.gz"' had status 1
Warning in install.packages :
installation of package ‘C:/Users/Fsociety/Desktop/caret_5.17-7.tar.gz’ had non-zero exit status 

我该怎么办?

0 个答案:

没有答案