rlang 1.0.1
-
New
rlang_call_format_srcrefs
global option (#1349). Similar to
rlang_trace_format_srcrefs
, this option allows turning off the
display of srcrefs in error calls. This can be useful for
reproducibility but note that srcrefs are already disabled
within testthat by default. -
abort(parent = NA)
is now supported to indicate an unchained
rethrow. This helpsabort()
detect the condition handling context
to create simpler backtraces where this context is hidden by
default. -
When
parent
is supplied,abort()
now loops over callers to
detect the condition handler frame. This makes it easier to wrap or
extract condition handlers in functions without supplying.frame
. -
When
parent
is supplied andcall
points to the condition setup
frame (e.g.withCallingHandlers()
ortry_fetch()
),call
is
replaced with the caller of that setup frame. This provides a more
helpful default call. -
is_call()
is now implemented in C for performance. -
Fixed performance regression in
trace_back()
. -
Fixed a partial matching issue with
header
,body
, andfooter
condition fields. -
eval_tidy()
calls are no longer mentioned in error messages.