ftry: Wrap a try block in futile.logger

Description Usage Arguments Author(s) Examples

Description

This function integrates futile.logger with the error and warning system so problems can be caught both in the standard R warning system, while also being emitted via futile.logger.

Usage

1
ftry(expr, error = stop, finally = NULL)

Arguments

expr

The expression to evaluate in a try block

error

An error handler

finally

Pass-through to tryCatch finally

Author(s)

Brian Lee Yung Rowe

Examples

1
ftry(log(-1))

Example output

WARN [2017-07-25 14:42:17] NaNs produced

futile.logger documentation built on May 2, 2019, 8:53 a.m.