Extended try
Extended version of try
with support for tracebacks and
crash dumps.
etry( expr, silent = FALSE, outFile = getOption("try.outFile", default = stderr()), max.lines = 100L, dump.frames = c("partial", "full", "full_global", "no") ) ## S3 method for class ''etry-error'' print( x, max.lines = getOption("traceback.max.lines", getOption("deparse.max.lines", -1L)), ... )
expr |
an R expression to try. |
silent |
logical: should the report of error messages be suppressed? |
outFile |
a connection, or a character string naming the
file to print to (via |
max.lines |
for |
dump.frames |
should a crash dump (cf. |
x |
an object of class "etry-error". |
... |
further arguments passed to or from other methods. |
For etry
, the value of the expression if expr
is
evaluated without error, but an invisible object of class
c("etry-error", "try-error")
containing the error message if it
fails. This object has three attributes: (condition) the error condition,
(traceback) the traceback as returned by
.traceback
, (dump.frames) the crash dump
which can be examined using utils::debugger
.
Fully supported on Windows.
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.