Hi, all, whatâs the latest news on this issue; where can I find the instructions to properly install rstan 2.21.2 on a Windows 10 platform equipped with R version 4.0.2 (2020-06-22)? The point is: the updated instructions at https://github.com/stan-dev/rstan/wiki/RStan-Getting-Started (incl. editing the Makevars.win file) still donât lead to a successful installation for me. Is there a known workaround you could recommend? Many thanks.
Many thanks for the immediate input, Ben @bgoodri. Unfortunately, not generating Makevars.win and Makevars files during the installation process as descibed at https://github.com/stan-dev/rstan/wiki/RStan-Getting-Started does not appear to help either. Hereâs the error message I receive after running the fit <- stan(file = âschools.stanâ, data = schools_dat) command (sorry, it contains some German):
Fehler in file(con, ârâ) : kann Verbindung nicht öffnen
ZusÀtzlich: Warnmeldungen:
1: In system(paste(CXX, ARGS), ignore.stdout = TRUE, ignore.stderr = TRUE) :
âC:/rtools40/usr/mingw_/bin/g++â not found
2: In system(cmd, intern = !verbose) :
AusfĂŒhrung von Kommando âC:/PROGRA~1/R/R-40~1.2/bin/x64/R CMD SHLIB file25821982b96.cpp 2> file25821982b96.cpp.err.txtâ ergab Status 1
3: In file(con, ârâ) :
kann Datei âfile25821982b96.cpp.err.txtâ nicht öffnen: No such file or directory
Fehler in sink(type = âoutputâ) : ungĂŒltige Verbindung
readLines(â~/.R/Makevars.winâ)
Fehler in file(con, ârâ) : kann Verbindung nicht öffnen
ZusÀtzlich: Warnmeldung:
In file(con, ârâ) :
kann Datei âC:/Anwendungsdaten/heve/.R/Makevars.winâ nicht öffnen: No such file or directory
Session info -------------------------------------------------------------------------------------------
setting value
version R version 4.0.2 (2020-06-22)
os Windows 10 x64
system x86_64, mingw32
ui RStudio
language (EN)
collate German_Germany.1252
ctype German_Germany.1252
tz Europe/Berlin
date 2020-09-20
First, your BINPREF environment variable is telling R to look for the c++ compiler in the old RTools directory. To fix this, you need to delete the .Rprofile file in your Documents folder and then restart R/RStudio.
Second, your StanHeaders and inline packages are both out of date, and the old versions of these packages can both cause the failures youâre seeing (for different reasons). So you need to update those:
Excellent, Andrew @andrjohns, this did the trick! Stan, here we go again! Only, I get this warning, once the stan() sampling process has been completed:
In system(paste(CXX, ARGS), ignore.stdout = TRUE, ignore.stderr = TRUE) :
â-Eâ not found