conda-tools

0th

Percentile

Interface to conda

R functions for managing Python conda environments.

Keywords
internal
Usage
conda_list(conda = "auto")

conda_create(envname = NULL, packages = "python", conda = "auto")

conda_remove(envname, packages = NULL, conda = "auto")

conda_install(envname = NULL, packages, forge = TRUE, pip = FALSE, pip_ignore_installed = TRUE, conda = "auto")

conda_binary(conda = "auto")

conda_version(conda = "auto")

conda_python(envname = NULL, conda = "auto")

Arguments
conda

Path to conda executable (or "auto" to find conda using the PATH and other conventional install locations).

envname

Name of conda environment

packages

Character vector with package names to install or remove.

forge

Include the Conda Forge repository.

pip

TRUE to use pip (defaults to FALSE)

pip_ignore_installed

Ignore installed versions when using pip. This is TRUE by default so that specific package versions can be installed even if they are downgrades. The FALSE 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).

Value

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.

Aliases
  • conda-tools
  • conda_list
  • conda_create
  • conda_remove
  • conda_install
  • conda_binary
  • conda_version
  • conda_python
Documentation reproduced from package reticulate, version 1.12, License: Apache License 2.0

Community examples

Looks like there are no examples yet.