Learn R Programming

result (version 0.1.0)

failure: Wraps a value in failure type of result

Description

Wraps a value in failure type of result

Usage

failure(value = "failed", status = "error")

Value

result object of subclass failure

Arguments

value

any object to wrap

status

character string of the result (typically short)

Examples

Run this code
failure()
failure(42)

Run the code above in your browser using DataLab