stop_invalid_math | R Documentation |
Helper function used to throw an error with a standardized class for the case where an unsupported math operation is called for a given stype type. This is intended to be explicitly invoked by internal routines in situations where we don't want the S3 dispatch to fall through to vctrs handling of math operators, which amounts to invoking the operator in base with the raw data as the input for types that are supported, and then restoring the appropriate vctrs but not stype type (for types that are not supported by vctrs an error is thrown immediately).
stop_invalid_math(x, op, class = NULL, ...)
x |
stype vector |
op |
the math operation |
class |
optional class argument passed to |
... |
additional arguments passed to |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.