Validates that the elements are in order and reports the position of the first element that breaks it.
Details
Works on numeric, character, logical, Date, POSIXct,
difftime and ordered-factor values; other input fails with a type
error. Character values compare in the collation order of the session
locale. NA elements are skipped; chain require_no_na() to reject
them.
See also
Other structure checks:
require_dim(),
require_has_cols(),
require_length(),
require_length_matches(),
require_length_max(),
require_length_min(),
require_named(),
require_names(),
require_ncol_matches(),
require_ncol_min(),
require_nrow_matches(),
require_nrow_min(),
require_scalar(),
require_unique_names()