pacman icon indicating copy to clipboard operation
pacman copied to clipboard

Can pacman install R packages in a fully automatic way, without any user interaction needed ever?

Open UnixJunkie opened this issue 7 years ago • 1 comments

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.

UnixJunkie avatar Dec 07 '18 01:12 UnixJunkie

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)

seakintruth avatar Aug 09 '20 15:08 seakintruth