pac_deps_heavy {pacs} | R Documentation |
Package direct dependencies and number of dependencies for each of them
Description
A 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 |
|
fields |
|
lib.loc |
|
base |
|
local |
|
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).
Note
Please take into account that the sum of the dependencies is not equal to the number of dependencies of the main package, because some dependencies are overlapping.
Examples
## Not run:
pacs::pac_deps_heavy("caret")
pacs::pac_deps_heavy("dplyr")
## End(Not run)