Tools to test if a suitable version of Rtools is available, or help the user to set this up.
rtools_find()rtools_registry_info()
rtools_install(silent = TRUE)
performs automatic unattended installation with all
the default options. If set to FALSE
the user has to click through
the usual installation wizard.
Unlike most operating systems, Windows does not include a native compiler. Hence in order to build R packages with compiled C/C++/Fortran code on Windows, you need to install our custom toolchain bundle called Rtools.
There are currently 2 versions of Rtools available:
rtools40: required for compiling packages on R-4.0 and newer
rtools35: required for compiling packages on R-3.6 and older
The function rtools_find shows information about a suitable version of
Rtools installed on your system. If needed, it automatically adds make
to the PATH of the current session. If rtools_find()
returns a list
(containing toolchain information), this means everything is ready to
install packages from source using install.packages and others. It
returns NULL
if no suitable version is found on the system.
The rtools_install function automatically downloads and installs the appropriate version of Rtools for your current version of R.
Other maketools:
diagnostics
,
make()
,
pkgconfig
,
r_config
,
sysdeps