assert_not_na: Assert not na

View source: R/missing-assertions.R

assert_not_naR Documentation

Assert not na

Description

Raises an assertion error when anyNA(obj)

Usage

assert_not_na(
  obj,
  error_message = "{.arg obj} must be not contain {.code NA}",
  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_null()


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