could this perhaps be connected to the issues people have reported with Windows + rstan? Please check the forum and if you can’t find anything get back here. :)
@andrjohns@torkar So I went through the thread on rstan and windows, and followed the advice on my Makevars.win file. Rstan works, but only in certain situations.
and try to run the Eight Schools model, I get the error code
Error in file(con, "r") : cannot open the connection
In addition: Warning messages:
1: In system(paste(CXX, ARGS), ignore.stdout = TRUE, ignore.stderr = TRUE) :
'C:/RBUILD~1/4.0/usr/mingw_/bin/g++' not found
2: In system(cmd, intern = !verbose) :
running command 'C:/PROGRA~1/R/bin/x64/R CMD SHLIB file559c50ec76a2.cpp 2> file559c50ec76a2.cpp.err.txt' had status 1
3: In file(con, "r") :
cannot open file 'file559c50ec76a2.cpp.err.txt': No such file or directory
Error in sink(type = "output") : invalid connection
But when I don’t call at the beginning and instead use
fit <- rstan::stan(model_code = model, data = schools_dat)
the model runs with the following warning messages
Warning messages:
1: In system(paste(CXX, ARGS), ignore.stdout = TRUE, ignore.stderr = TRUE) :
'C:/RBUILD~1/4.0/usr/mingw_/bin/g++' not found
2: There were 1 divergent transitions after warmup. See
http://mc-stan.org/misc/warnings.html#divergent-transitions-after-warmup
to find out why this is a problem and how to eliminate them.
3: Examine the pairs() plot to diagnose sampling problems
Hopefully this is helpful, and if you need me to check/try anything else just let me know. I’m just glad I can get models up and running :)
@andrjohns@torkar I tried uninstalling and re-installing rstan, and am now getting a different error message when I follow along with the Eight Schools model on the Getting Started page. When I try and fit the model, I get
Error in withr::set_makevars(new, path, state, assignment = assignment) :
Multiple results for CXX14FLAGS found, something is wrong.FALSE
In addition: Warning message:
In system(paste(CXX, ARGS), ignore.stdout = TRUE, ignore.stderr = TRUE) :
'C:/RBUILD~1/4.0/usr/mingw_/bin/g++' not found
I’ve checked my Makevars.win, which looks like this