Check whether a package has a recursive dependency on the other

pkg_1 %relies% pkg_2

Arguments

pkg_1

(string) A package name

pkg_2

(string) A package name

Value

(flag) TRUE, if 'pkg_1' `relies` on 'pkg_2'

See also

relies, reverse_relies

Examples

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