Skip to contents

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("reticulate", "basilisk"),
  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.

See also

Examples

if (FALSE) { # \dontrun{
path <- env_to_yaml(conda_env="base")
} # }