req_file: Extract requirements from a file

Description Usage Arguments

View source: R/requirements.R

Description

* '.R': extracts requirements from parsed code

* '.Rmd' & '.Rpres': requirements from chunks (parsed using regular expressions to avoid dependency on knitr package). If rmarkdown package is installed, will also add requirements from custom output type.

* '.Rnw': tangles the document and then extracts from '.R' file.

Usage

1
req_file(path)

Arguments

path

Path to file


beanumber/fertile documentation built on April 17, 2021, 4:33 a.m.