env_to_yaml: Create yaml file from env

View source: R/env_to_yaml.R

env_to_yamlR Documentation

Create yaml file from env

Description

Export a yaml file from a conda environment.

Usage

env_to_yaml(
  conda_env,
  yaml_path = file.path(tempdir(), "conda.yml"),
  conda = "auto",
  method = c("basilisk", "reticulate"),
  verbose = TRUE,
  ...
)

Arguments

conda_env

Name of the conda environment to export.

yaml_path

Path to write yaml file to.

conda

The path to a conda executable. Use "auto" to allow reticulate to automatically find an appropriate conda binary. See Finding Conda and conda_binary() for more details.

method

Method to use:

  • "basilisk"

  • "reticulate"

verbose

Print messages.

...

Additional arguments passed to conda_create.

Source

GitHub Issue

GitHub Issue

See Also

Other conda: activate_env(), find_env_rlib(), yaml_to_env()

Examples

path <- echoconda::env_to_yaml(conda_env="base")

RajLabMSSM/echoconda documentation built on May 21, 2023, 10:19 a.m.