Learn R Programming

fgeo.tool (version 1.2.9)

assert_is_installed: Assert a package is installed.

Description

Assert a package is installed.

Usage

assert_is_installed(pkg)

Value

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

Arguments

pkg

Character vector giving the name of a package.

Examples

Run this code
assert_is_installed("base")
if (FALSE) {
try(assert_is_installed("bad"))
}

Run the code above in your browser using DataLab