Captures recursive dependencies of these types: "Depends", "Imports", "LinkingTo"

relies(packages)

Arguments

packages

(non-empty character vector) Package names

Value

(Named list) A name is the package name from 'packages'. A Value is a character vector of all packages which the package 'relies' (Captures recursive dependencies of these types: "Depends", "Imports", "LinkingTo")

See also

reverse_relies

Examples

pkggraph::init(local = TRUE)
#> Using 'local' data ...
#> To fetch data from CRAN over internet, run:
#> `pkggraph::init(local = FALSE)`
#> Done!
pkggraph::relies("tidytext")
#> Error in pkggraph::relies("tidytext"): Unable to find `packmeta`. Please run `pkggraph::init(local = TRUE)`.