Hi,
I had Rstan running, it took one hour for my computer while it took 1 minute on other people’s computer. So I decided to reinstall R, Rstudio, Rstan, and Rtools. However, after I re-installed everything,
it runs fine for extremely simple code,
regular IRT takes 10 minutes too run (too long),
my regular model will not run. It gives the error “Error: cannot allocate vector of size 16687.6 Gb
In addition: Warning message:
In system(paste(CXX, ARGS), ignore.stdout = TRUE, ignore.stderr = TRUE) :
‘C:/rtools40/usr/mingw_/bin/g++’ not found”
I suspect the installation is not perfect, and tried all the suggestions I got from the internet and other people, but still doesn’t work. I’d really appreciate it if you could help.
Thank you!
I don’t think C:\rtools40\usr\bin is a valid directory. In R, what is
Sys.getenv("RTOOLS40_HOME")
? Also, while C:\rtools40\mingw64\bin is valid, it might need to be higher up on the PATH, and both copies of C:\rtools40\mingw_64\bin\g++ on the PATH should be deleted because they are executables rather than directories. In short, whoever or whatever set your PATH environmental variable did it wrong.