p_extract {pacman} | R Documentation |
Convert String With Commas Into Elements
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
p_extract(x, use.names = TRUE)
Arguments
x |
A character string of packages separated by commas; for example
the strings returned from |
use.names |
logical. If |
Value
Returns a character vector of packages.
See Also
Examples
## 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)
[Package pacman version 0.5.1 Index]