Learn R Programming

R.oo (version 1.20.0)

abort: Aborts the current expression call

Description

Aborts the current expression call and returns to the top level prompt/browser without signalling a condition.

Usage

"abort"(..., call.=TRUE, domain=NULL)

Arguments

...
(optional) Objects coerced to character and pasted together without a separator, or a @condition object. If no object are given, no message is printed.
call.
If TRUE, the call is added to the message, otherwise not.
domain
Used to translate the message (see gettext()). If NA, messages will not be translated.

Value

Returns nothing.

Details

There are still cases where one can "catch" the abort and undo it, cf. [1].

References

[1] R-devel thread '', Sept 11, 2012, https://stat.ethz.ch/pipermail/r-devel/2012-September/064838.html.

See Also

throw(). stop(). Internally, invokeRestart()("abort") is utilized.