p_extract: Convert String With Commas Into Elements

Description Usage Arguments Value See Also Examples

Description

p_extract is designed to be used in conjunction with p_information to convert a single comma separated string into a vector of package names.

Usage

1
p_extract(x, use.names = TRUE)

Arguments

x

A character string of packages separated by commas; for example the strings returned from p_information.

use.names

logical. If TRUE package names, including version number, are used.

Value

Returns a character vector of packages.

See Also

p_information

Examples

1
2
3
4
5
6
## Not run: 
p_extract(p_info(ggplot2, "Depends"))
p_extract(p_info(ggplot2, "Imports"))
lapply(p_info(ggplot2, "Imports", "Depends", "Suggests"), p_extract)

## End(Not run)


Search within the pacman package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.