我想在Windows 7中安装旧的2009 R tar.gz软件包,并尝试使用新旧版本的R(3.1.1 - 输出如下所示,2.7.0)进行安装。这可能与解决方案无关,但我已使用此solution中提供的代码临时为R设置路径以识别Rtools 31。
我在最近的期刊文章中看过这个包,所以我知道它的功能。如果您想尝试安装此软件包,可以使用here。
有谁知道如何解决此cygwin警告,或者错误:编译失败问题/安装是否具有非零退出状态?
我真的很感激,非常感谢!
> install.packages("cusp_2.2.tar.gz",type="source",repos=NULL,dependencies=TRUE)
* installing *source* package 'cusp' ...
** package 'cusp' successfully unpacked and MD5 sums checked
** libs
*** arch - i386
cygwin warning:
MS-DOS style path detected: C:/PROGRA~1/R/R-31~1.1/etc/i386/Makeconf
Preferred POSIX equivalent is: /cygdrive/c/PROGRA~1/R/R-31~1.1/etc/i386/Makeconf
CYGWIN environment variable option "nodosfilewarning" turns off this warning.
Consult the user's guide for more details about POSIX paths:
http://cygwin.com/cygwin-ug-net/using.html#using-pathnames
gcc -m32 -I"C:/PROGRA~1/R/R-31~1.1/include" -DNDEBUG - I"d:/RCompile/CRANpkg/extralibs64/local/include" -O3 -Wall -std=gnu99 -mtune=core2 -c cusp.nc.c -o cusp.nc.o
gcc: not found
make: *** [cusp.nc.o] Error 127
Warning: running command 'make -f "C:/PROGRA~1/R/R-31~1.1/etc/i386/Makeconf" -f "C:/PROGRA~1/R/R- 31~1.1/share/make/winshlib.mk" SHLIB="cusp.dll" OBJECTS="cusp.nc.o"' had status 2
ERROR: compilation failed for package 'cusp'
* removing 'C:/Program Files/R/R-3.1.1/library/cusp'
Warning messages:
1: running command '"C:/PROGRA~1/R/R-31~1.1/bin/x64/R" CMD INSTALL -l "C:\Program Files\R\R-3.1.1\library" "cusp_2.2.tar.gz"' had status 1
2: In install.packages("cusp_2.2.tar.gz", type = "source", repos = NULL, :
installation of package ‘cusp_2.2.tar.gz’ had non-zero exit status
> sessionInfo()
R version 3.1.1 (2014-07-10)
Platform: x86_64-w64-mingw32/x64 (64-bit)
locale:
[1] LC_COLLATE=English_United States.1252 LC_CTYPE=English_United States.1252 LC_MONETARY=English_United States.1252
[4] LC_NUMERIC=C LC_TIME=English_United States.1252
attached base packages:
[1] stats graphics grDevices utils datasets methods base
> .libPaths()
[1] "C:/Program Files/R/R-3.1.1/library"