Pkgbuild::has_build_tools(debug = TRUE) returns FALSE during installation on Windows10


I am new to Stan and I wanted to download it according to the instruction on:

Everything worked until I had to check my C++ toolchain via:

pkgbuild::has_build_tools(debug = TRUE)

Whenever I run that, a pop-up window asks me wheter I want to install additional build tools.
If I answer to either “Yes” or “No”, the pop up windows closes and the function immediately returns ‘FALSE’, without any additional message.

Any tips or hints to solve this?
Thank you in advance :)

You can try first calling

options(buildtools.check = NULL)

but it is quite possible that something is wrong with your C++ toolchain.

Thank you very much for the answer but I found the solution already.
I did not have RTools installed as my version of R was 3.5.2.
The new version of R4.0.2 was required so I installed that and RTools and tried again.

1 Like