powered by
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
p_information
p_extract(x, use.names = TRUE)
A character string of packages separated by commas; for example the strings returned from p_information.
logical. If TRUE package names, including version number, are used.
TRUE
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) # }
Run the code above in your browser using DataLab