locational / image-r-geospatial-spamm

0 stars 0 forks source link

use pacman #1

Open onlyjsmith opened 4 years ago

onlyjsmith commented 4 years ago

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_
onlyjsmith commented 4 years ago

Think is done in 32edf3649446ecdcc91e9d798cc57139cfc6c62e