我在使用Windows7(64位)运行R(版本3.0.1)的服务器上安装rstan时遇到了问题。我安装了Rcpp和内联,我得到了"* DONE (rstan)"。但是,当我运行
fit <- stan(model_code = schools_code, data = schools_dat,iter = 1000, chains = 4)
我得到了下面的错误:
Erreur dans compileCode(f, code, language = language, verbose = verbose) :
Compilation ERROR, function(s)/method(s) not created! cygwin warning:
MS-DOS style path detected: C:/PROGRA~1/R/R-30~1.2/etc/x64/Makeconf
Preferred POSIX equivalent is: /cygdrive/c/PROGRA~1/R/R-30~1.2/etc/x64/Makeconf
CYGWIN environment variable option "nodosfilewarning" turns off this warning.
De plus : Message d'avis :
l'exécution de la commande 'C:/PROGRA~1/R/R-30~1.2/bin/x64/R CMD SHLIB file16bc2e56893.cpp 2> file16bc2e56893.cpp.err.txt' renvoie un statut 1 你们有人知道该怎么做吗?
发布于 2014-03-03 18:33:39
我的理解是,建议Windows用户使用RTools而不是Cygwin编译器。使用"RTools windows r“进行搜索,也可以阅读"R扩展手册”。
https://stackoverflow.com/questions/22135014
复制相似问题