load_or_install: Install (If Necessary) and Load Multiple Packages at Once

Description Usage Arguments Value Examples

Description

Convenience function that for a list of packages looks if they are installed, installs them if they are not and then loads them.

Usage

1

Arguments

...

Packages. Quoted or unquoted.

.packages

Character vector or list of packages. Mainly useful for automated use in functions. Packages in .packages will be loaded after those in ...

Value

TRUE if packages were installed, FALSE otherwise. There are no other sanity checks at the moment.

Examples

1
load_or_install(dplyr, data.table, magrittr)

STAT-UP/statupinternal documentation built on May 9, 2019, 11:43 a.m.