Skip to contents

d_validate_state() checks a d_state() and returns TRUE when it is valid, throwing an informative error otherwise. It is the d_-prefixed predicate form of validate_dragmapr_state(), convenient for assertions and stopifnot().

Usage

d_validate_state(state)

Arguments

state

A dragmapr_state object.

Value

TRUE for a valid state.

Examples

d_validate_state(d_state())
#> [1] TRUE