Check whether pkg_1 has a dependency on pkg_2

pkg_1 %depends% pkg_2

Arguments

pkg_1

a package name

pkg_2

a package name

Value

TRUE or FALSE

Examples

pkggraph::init(local = TRUE)
#> Using 'local' data ...
#> To fetch data from CRAN over internet, run:
#> `pkggraph::init(local = FALSE)`
#> Done!
"dplyr" %depends% "tibble"
#> Error: exists("packmeta") is not TRUE