library(pkgdepends) deps_1 <- c("config/needs/foo", pkg_dep_types_hard()) deps_2 <- list( direct = c("config/needs/foo", pkg_dep_types_hard()), indirect = pkg_dep_types() ) deps_3 <- list( direct = c("config/needs/foo", pkg_dep_types_hard()), indirect = c("config...