check_package: Check Package

View source: R/utils.R

check_packageR Documentation

Check Package

Description

Check that a package is available.

Usage

check_package(pkg, msg = NULL, call. = FALSE)

Arguments

pkg

'character' string. Package name.

msg

'character' string. Action package is used for.

call.

'logical' flag. Whether the function should be part of the error message.

Value

Stops execution if the package is missing from the name space.

Author(s)

J.C. Fisher, U.S. Geological Survey, Idaho Water Science Center

Examples

check_package(pkg = "inldata", msg = "Dataset access")

inldata documentation built on Sept. 12, 2024, 9:34 a.m.