Learn R Programming

condathis (version 0.1.1)

list_envs: List Installed Conda Environments

Description

This function retrieves a list of Conda environments installed in the Condathis environment directory. The returned value excludes any environments unrelated to Condathis, such as the base Conda environment itself.

Usage

list_envs(verbose = "silent")

Value

A character vector containing the names of installed Conda environments. If the command fails, the function returns the process exit status as a numeric value.

Arguments

verbose

A character string indicating the verbosity level for the command. Defaults to "silent". Options include "silent", "minimal", and "verbose". See run() for details.

Examples

Run this code
if (FALSE) {
condathis::with_sandbox_dir({
  # Create environments
  condathis::create_env(
    packages = "fastqc",
    env_name = "fastqc-env"
  )
  condathis::create_env(
    packages = "python",
    env_name = "python-env"
  )

  # List environments
  condathis::list_envs()
  #> [1] "fastqc-env" "python-env"
})
}

Run the code above in your browser using DataLab