Learn R Programming

Capsule (version 0.2.0)

track_conda_env: Track Conda Environment

Description

Export and track a conda environment specification for reproducibility. Works with both conda and mamba.

Usage

track_conda_env(env_name = NULL, output_file, use_mamba = FALSE, registry_file)

Value

List containing environment information

Arguments

env_name

Character. Name of conda environment. If NULL, uses active environment.

output_file

Character. Path to save environment file (required).

use_mamba

Logical. Use mamba instead of conda. Default FALSE.

registry_file

Character. Path to conda registry (required).

Examples

Run this code
if (FALSE) {
# Track currently active conda environment
track_conda_env(output_file = tempfile(fileext = ".yml"),
                registry_file = tempfile(fileext = ".json"))

# Track specific environment
track_conda_env(env_name = "bioinfo_env",
                output_file = tempfile(fileext = ".yml"),
                registry_file = tempfile(fileext = ".json"))

# Use mamba instead
track_conda_env(use_mamba = TRUE,
                output_file = tempfile(fileext = ".yml"),
                registry_file = tempfile(fileext = ".json"))
}

Run the code above in your browser using DataLab