2020-09-06T14:00:00Z
Hello
This seems to be a common problem but the threads are long and difficult to follow. Can’t get Stan to run now after multiple re-installs of R and R studio.
Tried fiddling with the makevars.win file; this is what I have in it now in the makevars file:
CXX14=$(BINPREF)g++ -O2 -march=native -mtune=native”
and I’ve tried
Sys.setenv(BINPREF = "C:/RBuildTools/4.0/mingw64/bin/g++.exe")
as my Rtools directory downloaded as RBuildTools. I keep getting this error message:
Error in compileCode(f, code, language = language, verbose = verbose) :
sh: C:/Rtools/mingw_64/bin/g++: No such file or directorymake: *** [C:/PROGRA~1/R/R-40~1.2/etc/x64/Makeconf:229: file123061c3410a.o] Error 127
In addition: Warning message:
In system(paste(CXX, ARGS), ignore.stdout = TRUE, ignore.stderr = TRUE) :
'-E' not found
Error in sink(type = "output") : invalid connection
Thanks for any advice.
regards
Chris
- Windows 10
- RStan 2.21.2
- R 4.0.2
- RStudio 1.3.1073