libinstandload: Library Auto-installation and loading

Description Usage Arguments

View source: R/Misc.R

Description

One combined function to load (multiple) packages, and automatically install them if needed

Usage

1
libinstandload(..., order = FALSE, verbose = FALSE, extras = TRUE)

Arguments

...

list of packages to install

order

logical specifying whether packages should be loaded in order. If TRUE, first argument is loaded first (so comes last in search()) if FALSE, R tries to load packages first, then installs any misses, so new packages are on top. FALSE is slightly faster

verbose

logical, whether to print messages from require and install.package

extras

logical. Some packages need extra initialization, e.g. extrafonts needs to install fonts. Should extra initializations be done on installation?
Note that initiliazation scripts are added on an ad-hoc basis, and is not complete. In this first version. it is only implemented for 'extrafont'


EmilBode/EmilMisc documentation built on Feb. 24, 2020, 4:11 p.m.