appDependencies | R Documentation |
Recursively detect all package dependencies for an application. This function parses all R files in the application directory to determine what packages the application depends directly.
appDependencies(
project = NULL,
available.packages = NULL,
fields = opts$snapshot.fields(),
implicit.packrat.dependency = TRUE
)
project |
Directory containing application. Defaults to current working directory. |
implicit.packrat.dependency |
Include |
Only direct dependencies are detected (i.e. no recursion is done to find the dependencies of the dependencies).
Dependencies are determined by parsing application source code and
looking for calls to library
, require
, ::
, and
:::
.
Returns a list of the names of the packages on which R code in the application depends.
## Not run:
# dependencies for the app in the current working dir
appDependencies()
# dependencies for an app in another directory
appDependencies("~/projects/shiny/app1")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.