trinker / pacman

A package management tools for R
314 stars 37 forks source link

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

Open UnixJunkie opened 5 years ago

UnixJunkie commented 5 years ago

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.

seakintruth commented 4 years ago

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)