This function is a wrapper for reticulate::conda_install. Its implementation follows the instructions in:
https://rstudio.github.io/reticulate/articles/package.html
https://rstudio.github.io/reticulate/articles/python_dependencies.html
Usage
install_pySuStaIn(
envname = "r-pySuStaIn",
python_version = "<3.10",
method = "auto",
pip = TRUE,
...
)Arguments
- envname
The name, or full path, of the environment in which Python packages are to be installed. When
NULL(the default), the active environment as set by theRETICULATE_PYTHON_ENVvariable will be used; if that is unset, then ther-reticulateenvironment will be used.- python_version
The requested Python version. Ignored when attempting to install with a Python virtual environment.
- method
Installation method. By default, "auto" automatically finds a method that will work in the local environment. Change the default to force a specific installation method. Note that the "virtualenv" method is not available on Windows.
- pip
Boolean; use
pipfor package installation? This is only relevant when Conda environments are used, as otherwise packages will be installed from the Conda repositories.- ...
Arguments passed on to
reticulate::py_installpackagesA vector of Python packages to install.
condaThe path to a
condaexecutable. Use"auto"to allowreticulateto automatically find an appropriatecondabinary. See Finding Conda andconda_binary()for more details.pip_ignore_installed,ignore_installedBoolean; whether pip should ignore previously installed versions of the requested packages. Setting this to
TRUEcauses pip to install the latest versions of all dependencies into the requested environment. This ensure that no dependencies are satisfied by a package that exists either in the site library or was previously installed from a different–potentially incompatible–distribution channel. (ignore_installedis an alias forpip_ignore_installed,pip_ignore_installedtakes precedence).