Can't get stan() to run with R 4.0.2 despite hours of messing with Makevars.win

Hi Daniel,

That’s an easy fix, you’ve just missed a step in the Getting Started instructions.

There’s a bug with the withr package versions > 2.2.0 on Windows with RStan, this causes that error when you have anything in your Makevars.win file. To fix, you just need to manually install version 2.2.0 and then not update:

devtools::install_version("withr", version="2.2.0")

Yes, yes, I downgraded withr, but I always forget to uncheck this package when updating all packages ;-) That’s why I now tried the alternativ solution that works with withr 2.3

Are there any negative sideeffects when not having the above mentioned configuration in makevars.win?

Are there any negative sideeffects when not having the above mentioned configuration in makevars.win?

Yes, your models will run a little slower. The compiler flags:

-mtune=native -O3 -mmmx -msse -msse2 -msse3 -mssse3 -msse4.1 -msse4.2

instruct the compiler to aggressively optimise (-O3) the compiled code, and take advantage of any available SIMD instruction sets (-m*) for the given CPU