cause
R/cause.R
cause.Rd
Gets or sets the cause (of failure) attribute of a variable.
cause(x) cause(x) <- value
Object.
Value.
character(1). Cause attribute.
character(1)
assertive.base::cause().
assertive.base::cause()
attributes().
attributes()
attr().
attr()
## 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