redundant_packages: Find redundant packages

Description Usage Arguments Details Value Examples

Description

Find redundant packages

Usage

1

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

1
2
3
4
5
## Not run: 
#grid does not have be loaded since gridGraphics already does so.
redundant_packages(c("gridGraphics","grid"))

## End(Not run)

hgvandenboorn/hgutils documentation built on Sept. 9, 2019, 2:50 a.m.