

I try to look into Rstudio code source but not easy for me yet. Call("rs_canBuildCpp") returns FALSE even if I put the PATH correctly.
#Rtools install r studio download
rs.installBuildTools offers to download a binary different from the one in CRAN

#Rtools install r studio windows
on windows R expect Rtools to be in c:\rtools and does not check the PATH by default.I remind that if I use the binary installer I download from CRAN directly,it offers an installation in c:\rtools and everything is fine.Īlso, if I am outside of Rstudio where getOption("buildtools.check") = NULL (not defined), everything is ok because pkgbuild::has_rtools is launched and gets correct path. BINPREF is read by R, and everything is ok after that. When I use pkgbuild::find_rtools or pkgbuild::has_rtools, the correct path to Rtools is found because I set it in the PATH variable, and the BINPREF is set at the correct value.

rs.installBuildTools is called to offer to download Rtools even I have already done it and it is not in the correct location. So there is a mismatch between what if offered by RStudio to download, and what R knows.Call("rs_canBuildCpp") is still FALSE in preview version, and. However, if I used the installer from pkgbuild::has_build_tools, rtools is installed in C:\Rbuildtools.
