我/我正在尝试安装一些软件包并不断收到错误。
起初我正在尝试"安装包"从我一直以来的工具菜单,并得到错误
install.packages(" partykit&#34) 只能以源代码形式提供的包,可能需要编译C / C ++ / Fortran: “partykit” 这些将不会安装
这让我得到了这样的建议: How do I install an R package from source?
所以我尝试下载包和这段代码,不知道我做错了什么,有什么帮助?:
install.packages("C:\\Users\\sandera\\Downloads\\partykit_1.0-4.tar.gz",repos=NULL,type="source")
> install.packages("C:\\Users\\sandera\\Downloads\\partykit_1.0-4.tar.gz",repos=NULL,type="source")
* installing *source* package 'partykit' ...
** package 'partykit' successfully unpacked and MD5 sums checked
** libs
*** arch - i386
Warning: running command 'make -f "C:/Users/sandera/DOCUME~1/R/R-32~1.2/etc/i386/Makeconf" -f "C:/Users/sandera/DOCUME~1/R/R-32~1.2/share/make/winshlib.mk" SHLIB="partykit.dll" OBJECTS="ctreecall.o ctreelinstat.o ctreesplit.o ctreeteststat.o ctreeutils.o"' had status 127
ERROR: compilation failed for package 'partykit'
* removing 'C:/Users/sandera/Documents/R/R-3.2.2/library/partykit'
Warning in install.packages :
running command '"C:/Users/sandera/DOCUME~1/R/R-32~1.2/bin/x64/R" CMD INSTALL -l "C:\Users\sandera\Documents\R\R-3.2.2\library" "C:/Users/sandera/Downloads/partykit_1.0-4.tar.gz"' had status 1
Warning in install.packages :
installation of package ‘C:/Users/sandera/Downloads/partykit_1.0-4.tar.gz’ had non-zero exit status