capture: captures an expression, returning TRUE if there was an error...

Description Usage Arguments Value Examples

Description

captures an expression, returning TRUE if there was an error and FALSE otherwise

Usage

1
capture(expr, silent = FALSE)

Arguments

expr

an expression to be evaluated

silent

if TRUE, suppress error messages from printing (default: FALSE)

Value

FALSE if the expression successfully ran and TRUE otherwise

Examples

1
2
capture({log(1)})
capture({log(-1)})

flynnzac/rata documentation built on Jan. 24, 2021, 6:02 a.m.