Learn R Programming

twidlr (version 0.0.0.9000)

check_pkg: Check for required package

Description

Check if package is locally installed and call `stop()` with an error message if not

Usage

check_pkg(pkg_name)

Arguments

pkg_name
Character of the package name to check

Examples

Run this code
## Not run: ------------------------------------
# check_pkg("stats")
# check_pkg("dplyr")
# check_pkg("zzz")
## ---------------------------------------------

Run the code above in your browser using DataLab