Get (reverse) dependencies of a set of packages till a certain
depth(level) for a set of dependency types (relation).
(chr) Package names
(count(1)) Depth of recursive dependency
(chr) Types of relations. Must be a subset of
c("Depends", "Imports", "LinkingTo", "Suggests", "Enhances")
(flag[T]) Whether to consider all packages
(alternately only 'relation' specific packages) when computing dependencies
for the next level.
(chr) package names to ignore.
(flag[F]) Whether to get reverse dependencies.
(dataframe) with three columns: pkg_1, relation and pkg_2
if (FALSE) { # \dontrun{
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
)
} # }