Gets or sets the cause (of failure) attribute of a variable.

cause(x)

cause(x) <- value

Arguments

x

Object.

value

Value.

Value

character(1). Cause attribute.

See also

Examples

## Scalar cause. x <- isFlag("xxx") cause(x)
#> [1] "xxx" is not a boolean flag (TRUE/FALSE).
## Vector cause. x <- isInRange(c(1L, 2L), lower = 3L) cause(x)
#> [1] too low too low