Hi, I just tried for a few hours to install rstan on a new computer (Win10, 64bit). On my old machine everthing worked fine, but now I can’t get the 8school example running.
I get (as obviously quite a lot of people before me) the following error message:
fit <- stan(file = ‘8schools.stan’, data = schools_dat)
Error in compileCode(f, code, language = language, verbose = verbose) :
Compilation ERROR, function(s)/method(s) not created! In file included from C:/R/R-3.5.2/library/BH/include/boost/random/detail/integer_log2.hpp:19:0,
In addition: Warning message:
In system(cmd, intern = !verbose) :
running command ‘C:/R/R-35~1.2/bin/x64/R CMD SHLIB file1f081362874.cpp 2> file1f081362874.cpp.err.txt’ had status 1
Error in sink(type = “output”) : invalid connection
However I tried all suggested solutions I found (e.g. avoiding folder-names containing spaces, updating BH, …) and still cannot solve this. Any suggestion is highly welcome!
rstan version: 2.18.2
StanHeaders version: 2.18.1
BH version: 1.69.0-1
Rtools version 126.96.36.199