Learn R Programming

pacman (version 0.5.1)

p_information: Package Information

Description

Provides the information from for a package from the NAMESPACE. Information may include: title, version, author, maintainer, description, depends, imports, suggests

Usage

p_information(package = "base", ..., fields = NULL)

p_info(package = "base", ..., fields = NULL)

Arguments

package

Name of the package to grab information for. Default is "base".

Names of fields (see fields argument) to extract.

fields

A character vector giving the tags of fields to return (for use inside of functions rather than …).

Value

Returns a list of fields.

See Also

packageDescription, p_information

Examples

Run this code
# NOT RUN {
p_information()
p_info()
names(p_info())
p_info()[names(p_info())]
p_info(pacman)
p_info(pacman, Author)
p_info(pacman, BugReports, URL)
p_info(pacman, fields = "Version")
# }
# NOT RUN {
p_extract(p_info(ggplot2, "Depends"))
p_extract(p_info(ggplot2, "Imports"))
lapply(p_info(ggplot2, "Imports", "Depends", "Suggests"), p_extract)
# }

Run the code above in your browser using DataLab