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().
Examples
d_validate_state(d_state())
#> [1] TRUE
