Installing RStan on Windows10

Hi, everyone,

do there exist any new insights on this front as to whether indeed there is a bug with pkgbuild and / or R 3.6(.3)?

I just had to freshly install R (v3.6.3), rstan and Rtools, following the instructions given at https://github.com/stan-dev/rstan/wiki/RStan-Getting-Started. It looked like plain sailing all along. E.g., I got, as expected, the feedback

> pkgbuild::has_build_tools(debug = TRUE)
[1] TRUE

However, when I now compile Stan code for a second time (the first time things are fine), I get the response from Install BuildTools: “Building R package from source requires installation of additional build tools. Do you want to install the additional tools now?”

When I quit yes, it complains that an earlier version of Rtools already exists. When I quit no, things appear to proceed fine again. However, anytime I compile another Stan code I have to go through this annoying dialog again.

I am confused. Am I missing something essential here?

Cheers.

You did

?

2 Likes

I did now, Ben. (Perhaps these commands could be integrated in the instructions at https://github.com/stan-dev/rstan/wiki/RStan-Getting-Started? I didn’t know about them until now.) However, still the same annoying messages keep coming back, even though rstan appears to be doing its job reliably. ??? Cheers.

Try first doing

library(rstan)
rstan_options("required" = FALSE)
1 Like

Yes, this did the trick, Ben! Sorry for the hastle, and thanks for your assistance. So the upshot of the whole story is: my “problem” was induced by having upgraded my R installation to version 3.6.3. Whatever this may be good for …?