I recently installed R 4.0.2 (on Windows 10) alongside with Rtools40. However, when I try to Clean & Rebuild a package I always get an error:
WARNING: Rtools is required to build R packages but is not currently installed. Please download and install the appropriate version of Rtools before proceeding:
https://cran.rstudio.com/bin/windows/Rtools/
I've searched the net, added the appropriate paths, but still no solution. Below some results:
Sys.which("make")
make
"C:\rtools40\usr\bin\make.exe"
Sys.getenv("BINPREF")
[1] ""
pkgbuild::find_rtools(debug = TRUE)
[1] TRUE
pkgbuild::check_rtools(debug = TRUE)
[1] TRUE
pkgbuild::rtools_path()
[1] "C:\rtools40/usr/bin"
.Call("rs_canBuildCpp")
[1] TRUE
pkgbuild::has_build_tools()
[1] TRUE
Even If a add a path to BINPREF it still doesn't work. Also my coworker has working Rtools even with this empty path.
Has anyone stumbled upon a similar issue? Any help would be highly appreciated.