View source: R/install-python.R
| install_python_standalone | R Documentation |
Downloads and caches a portable Python build from python-build-standalone.
install_python_standalone(
version = NULL,
platform = NULL,
arch = NULL,
force = FALSE,
verbose = TRUE
)
version |
Character string. Python version to install (e.g.,
|
platform |
Character string. Target platform. |
arch |
Character string. Target architecture. |
force |
Logical. Whether to reinstall if already cached. |
verbose |
Logical. Whether to show progress. |
Character string. Path to the installed Python directory.
install_r_portable(), install_nodejs() for other runtime installers;
python_executable() to find the installed Python path.
# Install default Python version
install_python_standalone()
# Install specific version
install_python_standalone(version = "3.12.0")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.