List package dependencies based on the reports and scripts within the report_sources and scripts directories respectively.
list_deps(
factory = ".",
missing = FALSE,
check_r = TRUE,
exclude_readme = TRUE,
parse_first = FALSE
)
The path to the report factory or a folder within the desired factory. Defaults to the current directory.
A logical indicating if only missing dependencies should be
listed (TRUE
); otherwise, all packages needed in the reports are listed;
defaults to FALSE
.
If true, R scripts contained within the factory will also be checked. Note that this will error if the script cannot be parsed.
If TRUE (default) README files will not be checked for dependencies.
If TRUE
code will first be parsed for validity and
unevaluated Rmd chunks will not be checked for dependencies. The default
value is FALSE
and, in this case, files will simply be checked line by
line for calls to library
, require
or use of double, ::
, and triple,
:::
function calls.
A character vector of package dependencies.
This function requires that any R scripts present in the factory are valid syntax else the function will error.