Given a path
to a directory this function will scan all .R
and
.Rmd
files for any used R Packages along with their CRAN versions or GitHub references.
get_package_deps(app_dir = ".", all_deps = FALSE)
a list of package dependencies with installation details
path to a directory containing R scripts or R Markdown files. Defaults to current working directory.
boolean - whether or not to explicitly identify all "Imports" package dependencies of the packages used by your app.
Currently, packages are detected via automagic::parse_packages()
which supports
the following calls within the code: library()
, require()
, and
prefixed ::
calls to functions.
Once an initial vector of package is created, each package is a checked that it can
be downloaded and installed from CRAN
or GitHub
.
automagic::parse_packages()