setCause: Return 'FALSE' vector with causes of failure

setCauseR Documentation

Return FALSE vector with causes of failure

Description

Sets the cause attribute of an object and returns that object.

Usage

setCause(object, ...)

## S4 method for signature 'goalie'
setCause(object, ...)

## S4 method for signature 'logical'
setCause(object, false)

Arguments

object

Object.

...

Additional arguments.

false

character. A character vector to set the cause to, when x is FALSE.

Value

goalie.

Note

Updated 2023-10-02.

See Also

  • cause().

  • assertive.base::set_cause().

  • stats::setNames().

Examples

x <- setCause(
    object = c(TRUE, TRUE, FALSE, FALSE),
    false = "false"
)
print(x)
print(cause(x))

acidgenomics/r-goalie documentation built on Jan. 12, 2024, 4:15 a.m.