Using Rtools4 on Windows
https://cran.r-project.org/bin/windows/Rtools/rtools40.htmlPutting Rtools on the PATH. After installation is complete, you need to perform one more step to be able to compile R packages: we put the location of the Rtools make utilities (bash, make, etc) on the PATH.The easiest way to do so is by creating a text file .Renviron in your Documents folder which contains the following line:. PATH="${RTOOLS40_HOME}\usr\bin;${PATH}"
Using Rtools4 on Windows
cran.r-project.org › bin › windowsUsing Rtools4 on Windows. For R versions R-4.0.0 to to R-4.1.3, R for Windows uses a toolchain bundle called Rtools 4.0.This version of Rtools is based on msys2, which makes easier to build and maintain R itself as well as the system libraries needed by R packages on Windows.