我在让 Rstan 在我的 OSX 设置上工作时遇到了很多麻烦。对于背景信息,我的系统如下:
- OSX 优胜美地 v. 10.10.5
- R 3.2.1 GUI 1.66 小牛
每次通过 R stan 在 R 中运行 stan 模型时,都会出现以下错误(无论我正在运行的模型如何,因此已经检查了 stan 代码的语法错误)
Error in compileCode(f, code, language = language, verbose = verbose) :
Compilation ERROR, function(s)/method(s) not created! In file included from file32b7b27a829.cpp:465:
In file included from /usr/local/lib/R/3.2/site-library/rstan/include/rstan/rstaninc.hpp:3:
In file included from /usr/local/lib/R/3.2/site-library/rstan/include/rstan/stan_fit.hpp:75:
In file included from /usr/local/include/stan/services/mcmc/run_markov_chain.hpp:5:
/usr/local/include/stan/io/mcmc_writer.hpp:138:23: error: no member named 'is_recording' in 'rstan::rstan_sample_writer'
if (!recorder.is_recording())
~~~~~~~~ ^
/usr/local/include/stan/io/mcmc_writer.hpp:155:9: note: in instantiation of function template specialization 'stan::io::mcmc_writer<model32b75b587019_FamaFrench_COV_estimate_namespace::model32b75b587019_FamaFrench_COV_estimate, rstan::rstan_sample_writer, stan::interface_callbacks::writer::csv, stan::interface_callbacks::writer::messages>::write_adapt_finish<rstan::rstan_sample_writer>' requested here
write_adapt_finish(sampl
In addition: Warning message:
running command '/usr/local/Cellar/r/3.2.2_1/R.framework/Resources/bin/R CMD SHLIB file32b7b27a829.cpp 2> file32b7b27a829.cpp.err.txt' had status 1
>
其他相关信息:
我可以在 PyStan 中成功运行测试程序。这似乎主要是 Rstan 的一个问题。
谁能给我任何关于如何解决这个问题的线索?