Installs a list of packages into a specified conda environment
Arguments
- envname
The name of, or path to, a conda environment.
- packages
A character vector, indicating package names which should be installed or removed. Use
<package>==<version>
to request the installation of a specific version of a package. ANULL
value forconda_remove()
will be interpretted to"--all"
, removing the entire environment.- forge
Boolean; include the conda-forge repository?
- channel
An optional character vector of conda channels to include. When specified, the
forge
argument is ignored. If you need to specify multiple channels, including the conda forge, you can usec("conda-forge", <other channels>)
.- pip
Boolean; use
pip
for package installation? By default, packages are installed from the active conda channels.- pip_options
An optional character vector of additional command line arguments to be passed to
pip
. Only relevant whenpip = TRUE
.- pip_ignore_installed
Ignore already-installed versions when using pip? (defaults to
FALSE
). Set this toTRUE
so that specific package versions can be installed even if they are downgrades. TheFALSE
option is useful for situations where you don't want a pip install to attempt an overwrite of a conda binary package (e.g. SciPy on Windows which is very difficult to install via pip due to compilation requirements).- conda
The path to a
conda
executable. Use"auto"
to allowreticulate
to automatically find an appropriateconda
binary. See Finding Conda andconda_binary()
for more details.- python_version
The version of Python to be installed. Set this if you'd like to change the version of Python associated with a particular conda environment.
- ...
Optional arguments, reserved for future expansion.