Learn R Programming

erratum (version 2.2.0)

raise: Raisers

Description

Set raise method globally, every subsequent raise method will make use of this function.

Usage

raise.e(fn = NULL)

raise.w(fn = NULL)

Arguments

fn

Function to run when the raise method is called. By default the error uses stop() and warning uses warning(). The function must accept a single argument: the error message (character vector).