assert_that_: A wrapper around 'assertthat::assert_that()'.

View source: R/utils.R

assert_that_R Documentation

A wrapper around assertthat::assert_that().

Description

Provides a nicer error message generated through cli::cli_alert_danger().

Usage

assert_that_(..., env = parent.frame(), msg = NULL)

Arguments

...

Passed to assertthat::assert_that().

env

Passed to assertthat::assert_that() and cli::cli_alert_danger(). Defaults to caller env.

msg

Passed to cli::cli_alert_danger().

Value

TRUE if assertion is TRUE :)


bioinfocz/scdrake documentation built on Sept. 19, 2024, 4:43 p.m.