conda_export: Conda export

View source: R/conda_export.R

conda_exportR Documentation

Conda export

Description

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

Usage

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

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.

Source

https://stackoverflow.com/a/55687210

Examples

## Not run: 
conda_export()

## End(Not run)

rworkflows documentation built on Nov. 2, 2023, 5:21 p.m.