install_py_eeguana | R Documentation |
eeguana
install_py_eeguana
facilitates the installation of Python packages required by eeguana
within an R environment.
It leverages the reticulate
package to manage Python environments and supports various installation methods,
environment configurations, and Python versions.
install_py_eeguana(
conda = "auto",
envname = "r-eeguana",
restart_session = TRUE,
forge = TRUE,
...,
new_env = identical(envname, "r-eeguana"),
python_version = NULL
)
conda |
The path to a |
envname |
The name of the virtual environment to create or use. Default is 'r-eeguana'. |
restart_session |
Whether to restart the R session after installation. Default is TRUE. |
forge |
Whether to use conda-forge to install packages. Default is TRUE. |
... |
Additional arguments passed to |
new_env |
Whether to create a new environment if |
python_version |
The requested Python version. Ignored when attempting to install with a Python virtual environment. |
The function selects an appropriate method for environment management and Python installation, focusing on ease of use and flexibility. It supports creating new virtual or conda environments, installing necessary packages, and handling Python version requirements.
The function is designed to be robust, handling various scenarios such as existing environments, and provides detailed feedback during the process.
Returns NULL
invisibly and prints a message upon successful installation. If restart_session
is TRUE and the R session is running within RStudio, the session will restart automatically.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.