entrace() interrupts an error throw to add an rlang backtrace to the error. The error throw is
cnd_entrace() adds a backtrace to a
condition object, without any other effect. Both functions should
be called directly from an error handler.
error global option to
transform base errors to rlang errors. These enriched errors
include a backtrace. The RProfile is a good place to set the
handler. See rlang_backtrace_on_error for details.
entrace(cnd, ..., top = NULL, bottom = NULL) cnd_entrace(cnd, ..., top = NULL, bottom = NULL)
Unused. These dots are for future extensions.
The first frame environment to be included in the backtrace. This becomes the top of the backtrace tree and represents the oldest call in the backtrace.
This is needed in particular when you call
The last frame environment to be included in the backtrace. This becomes the rightmost leaf of the backtrace tree and represents the youngest call in the backtrace.
Set this when you would like to capture a backtrace without the capture context.
Can also be an integer that will be passed to
with_abort() to promote conditions to rlang errors.
cnd_entrace() to manually add a backtrace to a condition.