Expand metapackages
Value
Text string with metapackage load calls replaced by multiple separate calls to the core packages that make up the metapackage. Core packages will be fenced in four commenting symbols and the order follows the attachment order from each metapackage. Will make note of metapackages not currently installed.
Examples
test_string <- c("library(tidyverse)")
expand_metapackages(test_string)
#> [1] "####\nlibrary(ggplot2)\nlibrary(tibble)\nlibrary(tidyr)\nlibrary(readr)\nlibrary(purrr)\nlibrary(dplyr)\nlibrary(stringr)\nlibrary(forcats)\nlibrary(lubridate)\n####"