check_pkg: Check for required package

Description Usage Arguments Examples

Description

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

Usage

1
check_pkg(pkg_name)

Arguments

pkg_name

Character of the package name to check

Examples

1
2
3
4
5
6
## Not run: 
check_pkg("stats")
check_pkg("dplyr")
check_pkg("zzz")

## End(Not run)

drsimonj/twidlr documentation built on May 15, 2019, 2:53 p.m.