pacman
pacman copied to clipboard
Can pacman install R packages in a fully automatic way, without any user interaction needed ever?
Hello,
I have to fully automate installation of R libraries for some script. It might be the first time R is started (i.e. there was no prior creation/setup of the user's R libraries directory, etc.).
Can pacman help me? install.packages doesn't cut it. It asks several questions to the user.
Also, from which R version is pacman available?
Regards, F.
p_load attempts to install package if missing, I've been using
if (!require('pacman')){install.packages('pacman')}
# Install/load packages of interest
pacman::p_load(dplyr,fs,lubridate)