vctrs-conditions

0th

Percentile

Custom conditions for vctrs package

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

Keywords
internal
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

Aliases
  • vctrs-conditions
  • stop_incompatible_type
  • stop_incompatible_cast
  • stop_incompatible_op
  • warn_lossy_cast
Documentation reproduced from package vctrs, version 0.1.0, License: GPL-3

Community examples

Looks like there are no examples yet.