Just updating this in case anyone has any ideas
I did a complete reinstall of R, Rtools, RStudion, and rstan. I’m now getting a new error message when trying to run the schools model:
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 file56e044a05c9d.cpp 2> file56e044a05c9d.cpp.err.txt' had status 1
3: In file(con, "r") :
cannot open file 'file56e044a05c9d.cpp.err.txt': No such file or directory
Error in sink(type = "output") : invalid connection
Any help would be much appreciated!