Explains an error that already occurred in the session, without needing to
re-run a failing expression. Recovers stack frames, failing functions,
source code, and argument values across available runtime error records
(insider session stash, dump.frames, rlang::last_error(), or .Traceback).
Usage
explain_last_error(
package = NULL,
source = c("auto", "insider", "dump", "rlang", "traceback")
)Arguments
- package
Optional package name (character string). When
NULL(default), all recovered frames are reported. When provided, frames are filtered to that package.- source
Error source to inspect. Defaults to
"auto"which traverses tiers from highest to lowest fidelity:"insider"(internal session stash),"dump"(last.dump),"rlang"(rlang::last_error()), and"traceback"(.Traceback).