check_installed: Check package is installed

Description Usage Arguments Value Examples

View source: R/utils.R

Description

Checks if a package is installed, launches an error if it is not.

Usage

1
check_installed(pkg, fn = "this function")

Arguments

pkg

Name of the package.

fn

Function calling the check.

Value

The package is loaded into the namespace.

Examples

1
2
martini:::check_installed("martini")
## Not run: martini:::check_installed("martinid")

martini documentation built on Nov. 8, 2020, 5:39 p.m.