R functions for managing Python conda environments.
conda_list(conda = "auto") conda_create( envname = NULL, packages = NULL, forge = TRUE, channel = character(), conda = "auto", python_version = NULL ) conda_remove(envname, packages = NULL, conda = "auto") conda_install( envname = NULL, packages, forge = TRUE, channel = character(), pip = FALSE, pip_options = character(), pip_ignore_installed = FALSE, conda = "auto", python_version = NULL, ... ) conda_binary(conda = "auto") conda_version(conda = "auto") conda_python(envname = NULL, conda = "auto")
| conda | The path to a |
|---|---|
| envname | The name of, or path to, a conda environment. |
| packages | A character vector, indicating package names which should be
installed or removed. Use |
| forge | Boolean; include the Conda Forge repository? |
| channel | An optional character vector of Conda channels to include.
When specified, the |
| python_version | The version of Python to be used in this Conda
environment. The associated Python package from Conda will be requested
as |
| pip | Boolean; use |
| pip_options | An optional character vector of additional command line
arguments to be passed to |
| pip_ignore_installed | Ignore installed versions when using pip
(defaults to |
| ... | Optional arguments, reserved for future expansion. |
conda_list() returns a data frame with the names and paths to the
respective python binaries of available environments. conda_create()
returns the path to the python binary of the created environment.
conda_binary() returns the location of the main conda binary or NULL
if none can be found.
When conda = "auto", reticulate will attempt to automatically find an
Anaconda / Miniconda installation and use that. reticulate will search the
following locations:
The location specified by the reticulate.conda_binary R option;
The miniconda_path() location (if it exists);
The program PATH;
A set of pre-defined locations where Conda is typically installed.