Operating System: MacOS High Sierra
Interface Version: rstan 2.17.2
the downloaded rstan package can’t get compiler error messages from stanc.
I just upgraded to High Sierra (what’s in a name? celebrating legal pot in CA?).
In RStudio, I upgraded all installed packages - this gave me RStan 2.17.2.
Next I tried to compile a model with a simple syntax error:
Error in stanc(file = file, model_code = model_code, model_name = model_name, : c++ exception (unknown reason)
the fix that worked for me is:
this required a restart of the R session, then:
install.packages("rstan", type = "source")
Posting this for future reference - next I’ll check the RStan install page (because I don’t read the docs, I just write them).