redundant_packages {hgutils} | R Documentation |
Find redundant packages
Description
Find redundant packages
Usage
redundant_packages(packages)
Arguments
packages |
list of package names. |
Details
Certain packages have a direct dependency on other packages. In that case it is unnecessary to attach the latter packages. This function finds those packages and returns them in a named list. For each named item, the name is imported by the value in the list.
Value
A named list of packages names, where each value is a vector of packages already loading the corresponding package.
Examples
## Not run:
#grid does not have be loaded since gridGraphics already does so.
redundant_packages(c("gridGraphics","grid"))
## End(Not run)
[Package hgutils version 0.2.11 Index]