capture_requirements: Capture packages in use

Description Usage Arguments Value Examples

View source: R/capture_requirements.R

Description

This function creates a dependencies metadata requirements.txt file following the minimal conda compatible naming convention for package version definition: channel::package=version It can be used for creating a conda environment with conda create env --name tinyverse --file requirements.txt

Usage

1
2
3
4
5
capture_requirements(
  file = "_requirements.txt",
  write = FALSE,
  attached = TRUE
)

Arguments

file

A path to the filename for saving the requirements.txt. The default is _requirements.txt.

write

Boolean, TRUE or FALSE. If TRUE the function write the list of conda formatted dependencies in a file. If FALSE, it returns the dataframe with the package metadata.

attached

Boolean, TRUE or FALSE. If TRUE the function returns only the attached packages. If FALSE, all the packages present in the workspace are included. Default is TRUE.

Value

A dataframe or a text file with conda formatted package metadata

Examples

1

cgpu/anaRconda documentation built on April 13, 2020, 12:38 a.m.