Downloads and caches a portable R build. Follows the same pattern
as install_nodejs().
Usage
install_r_portable(
version = NULL,
platform = NULL,
arch = NULL,
force = FALSE,
verbose = TRUE
)
Arguments
- version
Character string. R version to install. If NULL, installs latest.
- platform
Character string. Target platform.
- arch
Character string. Target architecture.
- force
Logical. Whether to reinstall if already cached.
- verbose
Logical. Whether to show progress.
Value
Character string. Path to the installed R directory.
Examples
if (FALSE) { # \dontrun{
# Install latest R release
install_r_portable()
# Install specific version for a target platform
install_r_portable(version = "4.4.0", platform = "win", arch = "x64")
} # }