Learn R Programming

hgutils (version 0.2.11)

redundant_packages: Find redundant packages

Description

Find redundant packages

Usage

redundant_packages(packages)

Arguments

packages

list of package names.

Value

A named list of packages names, where each value is a vector of packages already loading the corresponding package.

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.

Examples

Run this code
# NOT RUN {
#grid does not have be loaded since gridGraphics already does so.
redundant_packages(c("gridGraphics","grid"))
# }

Run the code above in your browser using DataLab