Looks for a DESCRIPTION file in dir, then extract the packages in the fields & calculates the dependency tree.

audit_description(
  dir = ".",
  fields = c("Depends", "Imports", "Suggests"),
  verbose = TRUE
)

Arguments

dir

The file path of an renv.lock file.

fields

The DESCRIPTION field to parse. Default is Depends, Import, & Suggests.

verbose

Default TRUE.

Examples

if (FALSE) { # Looks for a DESCRIPTION file in dir audit_description(dir = ".") }