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 May 29, 2024, 5:30 a.m.