install_library: Installation and Loading of Packages

Description Usage Arguments Details See Also Examples

View source: R/utils.R

Description

Checks whether packages are installed before loading

Usage

1
install_library(packages)

Arguments

pkgs

character vector of the names of packages to install (if they are not already installed) and load.

Details

The function first checks whether packages are installed, and downloads from the CRAN repository those which are not already present, before loading them by calling the library() function.

See Also

install.packages, library

Examples

1
2
install_library("datatools")
install_library(c("questionr", "explor")

pmerckle/datatools documentation built on Feb. 21, 2022, 2:19 a.m.