assert_installed: Assert that packages are installed without attaching them

View source: R/packages.R

assert_installedR Documentation

Assert that packages are installed without attaching them

Description

Assert that packages are installed without attaching them

Usage

assert_installed(...)

Arguments

...

Unquoted package names separated by comma

Value

On success invisibly returns TRUE, otherwise an error.

Examples

assert_installed(ggplot2)
testthat::expect_error(assert_installed(ggplot2, ggplot3))

Deleetdk/kirkegaard documentation built on April 27, 2024, 3:26 p.m.