restore_conda_env: Restore Conda Environment

View source: R/conda_support.R

restore_conda_envR Documentation

Restore Conda Environment

Description

Restore a conda environment from a previously exported environment file

Usage

restore_conda_env(
  env_file = "conda_environment.yml",
  env_name = NULL,
  use_mamba = FALSE,
  force = FALSE
)

Arguments

env_file

Character. Path to environment YAML file. Default "conda_environment.yml"

env_name

Character. Name for the new environment. If NULL, uses name from file.

use_mamba

Logical. Use mamba instead of conda. Default FALSE.

force

Logical. Remove existing environment if it exists. Default FALSE.

Value

Logical. TRUE if successful, FALSE otherwise

Examples

## Not run: 
# Restore environment from file
restore_conda_env("conda_environment.yml")

# Use mamba for faster installation
restore_conda_env("conda_environment.yml", use_mamba = TRUE)

# Force recreate if exists
restore_conda_env("conda_environment.yml", force = TRUE)

## End(Not run)

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