Learn R Programming

AnalysisPageServer (version 1.6.2)

lives.ok: lives.ok

Description

Test that an expression lives OK

Usage

lives.ok(call, testname)

Arguments

call
An expression to evaluate
testname
A name for the test. Defaults to deparsing the call.

Value

Runs one test. Returns the value of the evaluated expression

Details

Test that evaluating an expression lives OK (does not throw an exception)

Examples

Run this code
lives.ok(3+5, "addition lives OK")

Run the code above in your browser using DataLab