p_extract {pacman} | R Documentation |
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.
p_extract(x, use.names = TRUE)
x |
A character string of packages separated by commas; for example
the strings returned from |
use.names |
logical. If |
Returns a character vector of packages.
## 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)