View source: R/get_package_deps.R
| get_package_deps | R Documentation |
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)
app_dir |
path to a directory containing R scripts or R Markdown files. Defaults to current working directory. |
all_deps |
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.
a list of package dependencies with installation details
automagic::parse_packages()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.