If we're using pacman to help us with deps, we could do something like this somewhere in the template:
packages = c('package1', 'package2') # Could come from a text file
if (!require("pacman")) install.packages("pacman") # Make sure it's installed
pacman::p_load(char = packages) # The `char` lets you specify a _character vector_
If we're using
pacman
to help us with deps, we could do something like this somewhere in the template: