Skip to contents

install packages if missing

Usage

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) {
# This will install packages on your system
install_if_missing(c("dplyr", "fcuk", "rusk"))
}