vctrs (version 0.1.0)

vctrs-conditions: Custom conditions for vctrs package

Description

These errors and warnings have custom classes and structures to make testing easier.

Usage

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)

Arguments

x, y

Vectors

details

Any additional human readable details

..., message, .subclass

Only use these fields when creating a subclass.

locations

For warn_lossy_cast(), an optional vector giving the locations where x lost information.

subclass

Use if you want to further customise the class