install packages if missing

install_if_missing(to_be_installed, ...)

Arguments

to_be_installed

a character vector containing required packages names

...

Arguments to be passed to utils::install.packages()

Value

Used for side effect. Install missing packages from the character vector input.

Examples

if (FALSE) {
install_if_missing(c("dplyr","fcuk","rusk"))
}