assert_is_installed: Assert a package is installed.

View source: R/assert_is_installed.R

assert_is_installedR Documentation

Assert a package is installed.

Description

Assert a package is installed.

Usage

assert_is_installed(pkg)

Arguments

pkg

Character vector giving the name of a package.

Value

An error if pkg is not installed or invisible pkg if it is.

Examples

assert_is_installed("base")
## Not run: 
try(assert_is_installed("bad"))

## End(Not run)

fgeo.tool documentation built on Sept. 3, 2022, 5:05 p.m.