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(pkgs, fn = "This function")

### Arguments

`pkgs` | Character vector with the names of the packages.
`fn` | Function calling the check.

### Value

The package is loaded into the namespace.

### Examples

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

[Package martini version 1.12.0 Index]