| get_dependencies | R Documentation |
Get (reverse) dependencies of a set of packages till a certain
depth(level) for a set of dependency types (relation).
get_dependencies(
packages,
level = 1L,
relation = c("Depends", "Imports", "LinkingTo", "Suggests", "Enhances"),
strict = FALSE,
ignore = c("datasets", "utils", "grDevices", "graphics", "stats", "methods"),
reverse = FALSE
)
packages |
( |
level |
( |
relation |
( |
strict |
( |
ignore |
( |
reverse |
( |
(dataframe) with three columns: pkg_1, relation and pkg_2
get_neighborhood
## Not run:
init()
get_dependencies("mlr3") |>
get_dependencies("mlr3", level = 2)
get_dependencies("mlr3", level = 2, reverse = TRUE)
get_dependencies("mlr3", level = 2, relation = "Imports")
# setting strict to TRUE to only consider 'Imports' of the previous level
get_dependencies("mlr3",
level = 2,
relation = "Imports",
strict = TRUE
)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.