How severe should the consequences of the assertion be?
Either "stop", "warning", "message", or "none".
.xname
Not intended to be used directly.
Value
is_character wraps is.character, providing more
information on failure. is_a_string returns TRUE if the
input is character and scalar. is_an_empty_string returns TRUE
if the input is "". is_numeric_string is vectorised,
returning TRUE when the inputs are not NA after conversion
to character and then numeric. is_missing_or_empty_string is
also vectorised, returning TRUE when the input is "" or
NA.
The assert_* functions return nothing but throw an error if the
corresponding is_* function returns FALSE.