Export a yaml file from a conda environment.

env_to_yaml(
  conda_env,
  yaml_path = file.path(tempdir(), "conda.yml"),
  conda = "auto",
  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.

verbose

Print messages.

...

Additional arguments passed to conda_create.

See also

Examples

path <- echoconda::env_to_yaml(conda_env="base")
#> echoconda:: Conda already installed.
#> Exporting environment base as yaml file.
#> * Environment 'base' exported to '/tmp/Rtmpzp1Wh9/conda.yml'.