Starting with R 4.0.0 (released April 2020), R for Windows uses a toolchain bundle called rtools40.
This version of Rtools includes gcc 8.3.0, and introduces a new build system based on msys2, which makes easier to build and maintain R itself as well as the system libraries needed by R packages on Windows. For more information about the latter, follow the links at the bottom of this document.
The current version of Rtools is maintained by Jeroen Ooms, older versions were put together by Prof. Brian Ripley and Duncan Murdoch. The best place for reporting bugs is via the r-windows organization on GitHub.
Installing Rtools40
Note that rtools40 is only needed build R packages with C/C++/Fortran code from source. By default, R for Windows installs the precompiled “binary packages” from CRAN, for which you do not need rtools!
To use rtools40, download the installer from CRAN:
- On Windows 64-bit: rtools40-x86_64.exe (recommended: includes both i386 and x64 compilers)
- On Windows 32-bit: rtools40-i686.exe (i386 compilers only)
Note for RStudio users: please check you are using a recent version of RStudio (at least 1.2.5042
) to work with rtools40.
网友评论