assert_not_null: Assert not null

View source: R/missing-assertions.R

assert_not_nullR Documentation

Assert not null

Description

Raises an assertion error when is.null(obj)

Usage

assert_not_null(
  obj,
  error_message = "{.arg obj} must be not {.code NULL}",
  error_class = NULL
)

Arguments

obj

<any> any object

error_message

<string> a message to be displayed when assertion fails.

error_class

<character> the class name/s for the error.

See Also

Other assertions: assert_not_na()


qfes/tidyassert documentation built on March 19, 2022, 7:18 a.m.