View source: R/get_all_dependencies.R
get_all_dependencies | R Documentation |
This function gets all the external packages that the project needs. It is
used the generate the Dependencies badge (add_dependencies_badge()
).
get_all_dependencies(pkg = NULL)
pkg |
A character of length 1. The name of a CRAN package or |
A list of three vectors:
base_deps
, a vector of base packages;
direct_deps
, a vector of direct packages;
all_deps
, a vector of all dependencies (recursively obtained).
Other utilities functions:
get_all_functions()
,
get_licenses()
,
get_minimal_r_version()
## Not run:
## Update dependencies ----
add_dependencies()
## Get all dependencies ----
deps <- get_all_dependencies()
unlist(lapply(deps, length))
## Can be used for a CRAN package ----
deps <- get_all_dependencies("usethis")
unlist(lapply(deps, length))
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.