track_conda_env: Track Conda Environment

View source: R/conda_support.R

track_conda_envR Documentation

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)

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

Value

List containing environment information

Examples

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

## End(Not run)

Capsule documentation built on Nov. 11, 2025, 5:14 p.m.