list_envs: List Installed Conda Environments

View source: R/list_envs.R

list_envsR Documentation

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")

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.

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.

Examples

## Not run: 
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"
})

## End(Not run)


condathis documentation built on April 12, 2025, 2:01 a.m.