I’m running Windows 10 RStudio 1.4.1103 and R 4.0.3.
A previously-working relatively simple mixed effects model was working, but started crashing RStudio after a long compile.
I tried to re-install rstan and StanHeaders from source to address this error, but now run into the following error (StanHeaders installs okay).
g++.exe: error: Global: No such file or directory
g++.exe: error: .Rprofile: No such file or directory
g++.exe: error: loaded!: No such file or directory
make: *** [C:/PROGRA~1/R/R-4.0.3/etc/i386/Makeconf:229: sparse_extractors.o] Error 1
ERROR: compilation failed for package ‘rstan’
removing ‘C:/Users/davidch/Documents/R/win-library/4.0/rstan’
Warning in install.packages :
installation of package ‘rstan’ had non-zero exit status
Yes jsonlite installs fine. My error arises from trying to install rstan from source, but StanHeaders also seems to install from source okay. I saw your answers to similar questions as mine from a web search as well on this forum, but unfortunately those solutions didn’t seem to work for me. THank you !
Hmm very odd, everything seems like it should be working. Can you try restarting R, making sure that it doesn’t a previous workspace or any packages (as clean a session as possible) and then try the rstan source install again:
install.packages("rstan",type="source")
And copy as much of the output here as you can? Hopefully there’s an earlier error that might give me a clue
I think the crashing may have started after I cancelled a model compilation by pressing the STOP button in RStudio, would there be any possibility that something messed up by doing that?
For some reason R is interspersing that loading message with the compilation arguments, and it causes g++ to fail. Have you changed any settings recently around your .Rprofile handling or other RStudio settings?
Wow strange. My .Rprofile has some custom institutional settings and is pasted below (i’ve removed the links and passwords ;+) )
Perhaps that first line with cat() is what is causing this? I delete it and try again now.
cat("Global .Rprofile loaded!\n\n")
# OTHER SETTINGS