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)})

genvar documentation built on Jan. 21, 2020, 9:07 a.m.