stop: Customized stop, gives lines-numbers if called from script

Description Usage Arguments

Description

Same as base::stop(), but when called from a sourced script, it also output the filename and linenumber

Usage

1
stop(..., quiet = FALSE, call. = TRUE)

Arguments

...

arguments passed on to base::stop()

quiet

Useful for controlled stopping from a script.

call.

logical, indicating if the call should become part of the error message. Ignored if quiet = TRUE If TRUE, no output is printed, and a recover-function as provided in options(error=) is bypassed.


Dans-labs/R-package_EmilMisc documentation built on May 17, 2019, 6:07 a.m.