Package direct dependencies and number of dependencies for each of them
Source:R/deps.R
pac_deps_heavy.RdA higher-level function, build from pacs::pacs_deps and tools::package_dependencies.
A tool to identify a main sources of dependencies, which direct dependencies are the heaviest one.
Usage
pac_deps_heavy(
pac,
fields = c("Depends", "Imports", "LinkingTo"),
lib.loc = .libPaths(),
base = FALSE,
local = FALSE,
repos = pacs::biocran_repos()
)Arguments
- pac
charactera package name.- fields
charactervector listing the types of dependencies, a subset ofc("Depends", "Imports", "LinkingTo", "Suggests", "Enhances"). Character string "all" is shorthand for that vector, character string "most" for the same vector without "Enhances", character string "strong" (default) for the first three elements of that vector. Default:c("Depends", "Imports", "LinkingTo")- lib.loc
charactervector of search paths with local packages. Default:.libPaths()- base
logicalif to add base packages too. IfTRUEthenpacs::pacs_base()are taken into account. Default:FALSE- local
logicalif to use local repository (or newest remote packages). Default:FALSE- repos
charactervector of repositories URLs to use. By default checking CRAN and newest Bioconductor per R version. Defaultpacs::biocran_repos()
Value
data.frame with three columns c("Package", "NrDeps", "NrUniqueDeps"): package name, number of dependencies and number of unique dependencies (not shared by other direct dependencies).