requiRements (version 0.0.0.9000)

req_code: Extract requirements from code

Description

Looks for `::`, `:::`, `library()`, `require()`, `requireNamespace()`, and `loadNamespace()`.

Usage

req_code(x)

Arguments

x

Code to examine. Supports unquoting.

Examples

Run this code
# NOT RUN {
req_code(library("rlang"))
req_code(rlang::expr())
# }

Run the code above in your browser using DataLab