Learn R Programming

result (version 0.1.0)

is_result: Checks if an object is of result class

Description

Checks if an object is of result class

Usage

is_result(obj)

Value

TRUE if object is of result class, FALSE otherwise

Arguments

obj

object to check

Examples

Run this code
is_result(success())
is_result(failure())
is_result(42)

Run the code above in your browser using DataLab