assert_is_named: Assert is named

View source: R/attribute-assertions.R

assert_is_namedR Documentation

Assert is named

Description

Raises an assertion error when !rlang::is_named(obj).

Usage

assert_is_named(
  obj,
  error_message = "{.arg obj} must be named",
  error_class = NULL
)

Arguments

obj

<any> any value

error_message

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

error_class

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

See Also

Other attribute-assertions: assert_has_names()


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