R/core.R
get_neighborhood.RdObtain dependencies and reverse dependencies of packages till a
given 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.
(dataframe) three columns: pkg_1, relation and pkg_2
if (FALSE) { # \dontrun{
init()
# explore first level dependencies
get_neighborhood("mlr3")
# explore second level dependencies
get_neighborhood("caret", level = 2)
# explore first level dependencies of multiple packages
# and consider second level dependencies
get_neighborhood(c("caret", "mlr"))
# get 'imports' specific neighborhood of 'mlr'
get_neighborhood("mlr", relation = "Imports")
} # }