Learn R Programming

assertive (version 0.2-6)

is_relistable: Is the input relistable?

Description

Checks to see if the input is relistable.

Usage

is_relistable(x, .xname = get_name_in_parent(x))

Arguments

x
Input to check.
.xname
Not intended to be used directly.

Value

  • is_relistable wraps is.relistable, providing more information on failure. The assert_* functions return nothing but throws an error if the corresponding is_* function returns FALSE.

See Also

is.relistable and is_scalar.

Examples

Run this code
assert_is_relistable(as.relistable(list(1,2,3)))
#These examples should fail.
dont_stop(assert_is_relistable(list(1,2,3)))

Run the code above in your browser using DataLab