I’m looking for help to implement Rtools/stan through the ‘brms’ R package. After following the instructions for installing Rtools, ensuring that the rstan tool chain works, and reinstalling R, R Studio, and rstan, I’m still not able to have the compiler called correctly. All of the checks on the rstan github page work (https://github.com/stan-dev/rstan/wiki/Installing-RStan-on-Windows#toolchain) with proper locations for each item.
I’m using R version 3.4.3 and Rtools34, with g++ v. 4.9.3 called.
When I call the brm() function from ‘brms’, it starts to work (‘Compiling the C++ model’), but I eventually reach the following error:
Error in compileCode(f, code, language = language, verbose = verbose) :
Compilation ERROR, function(s)/method(s) not created! In file included from C:/…/R/win-library/3.3/BH/include/boost/config.hpp:39:0,
from C:/…/R/win-library/3.3/BH/include/boost/math/tools/config.hpp:13
with a number of other files as well. I’ve searched for this error online, and have reinstalled these files to no avail.
Any ideas?
Emma
Edit: Whole error message
Compiling the C++ model
Error in compileCode(f, code, language = language, verbose = verbose) :
Compilation ERROR, function(s)/method(s) not created! In file included from C:/Users/SYLVESTERE/Documents/R/win-library/3.3/BH/include/boost/config.hpp:39:0,
from C:/…/Documents/R/win-library/3.3/BH/include/boost/math/tools/config.hpp:13,
from C:/…/Documents/R/win-library/3.3/StanHeaders/include/stan/math/rev/core/var.hpp:7,
from C:/…/Documents/R/win-library/3.3/StanHeaders/include/stan/math/rev/core/gevv_vvv_vari.hpp:5,
from C:/…/Documents/R/win-library/3.3/StanHeaders/include/stan/math/rev/core.hpp:12,
from C:/…/Documents/R/win-library/3.3/StanHeaders/include/stan/math/rev/mat.hpp:4,
from C:/…/Documents/R/win-library/3.3/StanHeaders/include/stan/math.hpp:4,
from C:/…/Documents/R/win-library/3.3/StanHeaders/include/src/stan/model/model_header.hpp:4,
In addition: Warning message:
running command ‘C:/PROGRA~1/R/R-33~1.3/bin/x64/R CMD SHLIB file2b8c5304240c.cpp 2> file2b8c5304240c.cpp.err.txt’ had status 1