Get a list of installed packages within a conda environment. Generates a requirements.txt file.

conda_export(
  name,
  save_path = tempfile(fileext = "_requirements.txt"),
  preview = FALSE,
  verbose = TRUE,
  ...
)

Source

https://stackoverflow.com/a/55687210

Arguments

name

Name of conda environment.

save_path

Path to save the requirements file. If the file ends with .yml or .yaml, a conda-style yaml file will be generated. If the file ends with requirements.txt, a pip-style requirements.txt file will be generated.

preview

Print the requirements file to the R console.

verbose

Print messages.

...

Optional arguments, reserved for future expansion.

Value

Path to requirements file.

Examples

if (FALSE) {
conda_export()
}