这是我在这里的第一篇文章。我正在尝试在我的Rstan
(以及RStudio)上安装windows
,我遇到了可怕的麻烦。
我将安装说明替换为:
Sys.setenv(R_MAKEVARS_USER =" foobar") 选项(repos = c(getOption(" repos"),rstan =" http://wiki.rstan-repo.googlecode.com/git/")) install.packages(' rstan',type =' source') Sys.unsetenv(" R_MAKEVARS_USER&#34)
据我所知,我遵循了Rstan安装指南。我检查了所有可以找到的Rstan故障排除指南(如果我忽视某些事情,我很抱歉)
尽管如此,我的Rstan还是没有编译。我收到以下消息:
Content type 'application/x-gzip' length 4515994 bytes (4.3 Mb)
opened URL
downloaded 4.3 Mb
* installing *source* package 'rstan' ...
** package 'rstan' successfully unpacked and MD5 sums checked
** libs
running 'src/Makefile.win' ...
cygwin warning:
MS-DOS style path detected: C:/PROGRA~1/R/R-30~1.2/etc//i386/Makeconf
Preferred POSIX equivalent is: /cygdrive/c/PROGRA~1/R/R-30~1.2/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
g++ -m32 -I"C:/PROGRA~1/R/R-30~1.2/include" -DNDEBUG -I"../inst/include/stansrc" -I"../inst/include/stanlib/eigen_3.2.0" -I"../inst/include/stanlib/eigen_3.2.0/unsupported" -I"../inst/include/stanlib/boost_1.54.0" -I"../inst/include" -DBOOST_RESULT_OF_USE_TR1 -DBOOST_NO_DECLTYPE -DBOOST_DISABLE_ASSERTS -I"C:/Users/Zsuzsa/Documents/R/win-library/3.0/Rcpp/include" -I"d:/RCompile/CRANpkg/extralibs64/local/include" -O3 -c stanc.cpp -o stanc.o
make: *** [stanc.o] Error 1
ERROR: compilation failed for package 'rstan'
* removing 'C:/Users/Zsuzsa/Documents/R/win-library/3.0/rstan'
Warning in install.packages :
running command '"C:/PROGRA~1/R/R-30~1.2/bin/i386/R" CMD INSTALL -l "C:\Users\Zsuzsa\Documents\R\win-library\3.0" C:\Users\Zsuzsa\AppData\Local\Temp\RtmpyIpg8h/downloaded_packages/rstan_2.2.0.tar.gz' had status 1
Warning in install.packages :
installation of package ‘rstan’ had non-zero exit status
下载的源包在
中‘C:\Users\Zsuzsa\AppData\Local\Temp\RtmpyIpg8h\downloaded_packages’
如果所有其他C代码都有效,我完全失去了为什么Rstan无效。 我会非常感谢任何回复。