cause: Get or set the '"cause"' attribute

Description Usage Arguments Value See Also Examples

View source: R/cause.R

Description

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

Usage

1
2
3
cause(x)

cause(x) <- value

Arguments

x

Any variable.

value

Passed to gettextf and stored in the "cause" attribute.

Value

The get method returns the "cause" attribute.

See Also

set_cause

Examples

1
2
3
4
5
6
7
# Scalar case
yn <- is_identical_to_true(FALSE)
cause(yn)

# Vector case
yn <- is_true(c(TRUE, FALSE, NA))
cause(yn)

assertive.base documentation built on Feb. 8, 2021, 9:06 a.m.