Compiling error with stan in the R package ‘brms’


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.


What is the output of Sys.getenv("PATH")? It should contain Rtools somewhere.

If RTools is not listed it will need to be added to your PATH variable.