check_installed {martini} | R Documentation

## Check package is installed

### Description

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

### Usage

    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

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

[Package martini version 1.4.0 Index]