Downloads and caches a portable Python build from python-build-standalone.
Usage
install_python(
version = "3.12.10",
platform = NULL,
arch = NULL,
force = FALSE,
verbose = TRUE
)
Arguments
- version
Character string. Python version to install.
- 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 Python directory.
Examples
if (FALSE) { # \dontrun{
# Install default Python version
install_python()
# Install specific version
install_python(version = "3.12.0")
} # }