Learn R Programming

fgeo.tool (version 1.2.5)

assert_is_installed: 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

Run this code
# NOT RUN {
assert_is_installed("base")
# }
# NOT RUN {
try(assert_is_installed("bad"))
# }

Run the code above in your browser using DataLab