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

cause(x)

cause(x) <- value

nocause(x)

Arguments

x

Object.

value

Value to assign.

Value

character(1). Cause attribute.

Note

Updated 2019-07-29.

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 2 #> too low too low