futile.logger (version 1.4.3)

ftry: Wrap a try block in futile.logger

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

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

Examples

Run this code
ftry(log(-1))

Run the code above in your browser using DataLab