0

OSX セットアップで Rstan を動作させるのに苦労しています。背景情報については、私のシステムは次のとおりです。

  • OSX Yosemite 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 に問題があるようです。

この問題を解決する方法について、誰か手がかりを教えてもらえますか?

4

1 に答える 1