if (!requireNamespace("librarian", quietly = TRUE)) { # If not installed, install the package install.packages("librarian") } librarian::shelf( dplyr, here, …