check_installed: Check package is installed

View source: R/utils.R

check_installedR 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")

hclimente/martini documentation built on Feb. 26, 2024, 6:23 p.m.