Hello, I see there is a long recent thread about similar issues, but I’ve tried the solutions in that one and none have seemed to work. I have tried to follow steps as best I can, and get no error message when I install rstan using:
install.packages("rstan", repos = "https://cloud.r-project.org/", dependencies = TRUE)
But then when I try
example(stan_model, package = "rstan", run.dontrun = TRUE)
I get this error message:
Compilation ERROR, function(s)/method(s) not created!
Error in compileCode(f, code, language = language, verbose = verbose) :
sh: g++: command not foundmake: *** [C:/PROGRA~1/R/R-40~1.3/etc/x64/Makeconf:229: file2360baa1170.o] Error 127
EDIT: Sorry I should have added I’m on a Windows, running R 4.0.