Workarounds for current Rstan Windows issues

The quick advice to avoid many of the RStan Windows issues:

  • do not install RTools in a path with spaces. If possible, install in the default location (C:/Rtools40)
  • place your R package library in a path without spaces
  • if you are using R 4.0, make sure to install RTools 4.0 and run
writeLines('PATH="${RTOOLS40_HOME}\\usr\\bin;${PATH}"', con = "~/.Renviron")

after installation (and then restart R). This is suggested in RTools instructions as well.

@bgoodri compilation not working if RTools is installed in a path with spaces and brackets is an R issue. Does it make sense to report that, given that its a general R issue? And where does one report that if yes?

5 Likes