My question is about style. Skimming through code in the tidyverse package, I was surprised to see the code chunk below. I had expected that any non-exported object would be saved in sysdata.rds.
Why is "core" defined in this way versus stored in sysdata.rds?
Is it because it is simple enough to be created in place, and because this way the code becomes more readable?
From: https://github.com/tidyverse/tidyverse/blob/master/R/attach.R
core <- c("ggplot2", "tibble", "tidyr", "readr", "purrr", "dplyr", "stringr", "forcats")
core_loaded <- function() {
search <- paste0("package:", core)
core[search %in% search()]
}