last.dump
object when an error occurs.
dump.calls(dumpTo = "last.dump", where = 1) dump.frames(dumpTo = "last.dump", where = 1)
dumpTo
(
"last.dump"
by default) is created when
either
dump.calls
or
dump.frames
is executed.
Function
dump.calls
dumps the current call stack;
dump.frames
dumps
the call stack and all frames. Dumping the frames may take much more
time than dumping calls,
since the frames contain all intermediate data objects.
However,
the frames provide information that the
browser
-like function
debugger
can use to help you understand the state of the
computations when an error occurs.
These functions are typically used as an error action to
save the current call stack or frames as an object
that can later be examined by the
traceback
and/or
debugger
functions.
When called, they write the message
"Dumped"
to
the terminal.
Function
dump.calls
is the default error action in the
.Options
data object.
# after an error occurs options(error=dump.frames) # reproduce error debugger() # after debugging is finished options(error=dump.calls)