These errors and warnings have custom classes and structures to make testing easier.
stop_incompatible_type(x, y, details = NULL, ..., message = NULL,
.subclass = NULL)stop_incompatible_cast(x, y, details = NULL, ..., message = NULL,
.subclass = NULL)
stop_incompatible_op(op, x, y, details = NULL, ..., message = NULL,
.subclass = NULL)
warn_lossy_cast(x, y, locations = NULL, details = NULL, ...,
message = NULL, .subclass = NULL)
Vectors
Any additional human readable details
Only use these fields when creating a subclass.
For warn_lossy_cast()
, an optional vector giving the
locations where x
lost information.
Use if you want to further customise the class