abort() errorlast_error() returns the last error entraced by abort() or
global_entrace(). The error is printed with a backtrace in
simplified form.
last_trace() is a shortcut to return the backtrace stored in
the last error. This backtrace is printed in full form.
last_error()last_trace(drop = NULL)
Whether to drop technical calls. These are hidden from
users by default, set drop to FALSE to see the full backtrace.
rlang_backtrace_on_error to control what is displayed when an
error is thrown.
global_entrace() to enable last_error() logging for all errors.
last_warnings() and last_messages().