p_extract(x, use.names = TRUE)
p_information
.TRUE
package names, including version
number, are used.Returns a character vector of packages.
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.
## <strong>Not run</strong>: # p_extract(p_info(ggplot2, "Depends")) # p_extract(p_info(ggplot2, "Imports")) # lapply(p_info(ggplot2, "Imports", "Depends", "Suggests"), p_extract) # ## <strong>End(Not run)</strong>
p_information