

The return value can be overridden by setting the "rlang_user_facing" global option. New env_is_user_facing() function to determine if an evaluation frame corresponds to a direct usage by the end user (from the global environment or a package being tested) or indirect usage by a third party function. You can link to it by starting an argument documentation with this button: Įnquos() and friends gain a.

The data-masking documentation for arguments has been imported from dplyr. This makes try_fetch() insensitive to changes of implementation or context of evaluation that cause a classed error to suddenly get chained to a contextual error.Įnglue() gained env, error_arg, and error_call arguments to support being wrapped in another function ( #1565). Try_fetch() now looks up condition classes across chained errors ( #1534). It’s normally TRUE by default, but if a warning is chained to an error or a message is chained to a warning or error (downgraded chaining). If FALSE, cnd_inherits() and try_fetch() do not match chained conditions across parents. This controls whether parent is inherited.

This is to avoid a large overhead when 100s or 1000s of warnings are signalled in a loop ( #1473).Ībort(), warn(), and inform() gain an. Global_entrace() and entrace() now stop entracing warnings and messages after 20 times. This is useful in conjunction with global_entrace() to get backtraces on warnings inside RMarkdown documents. New rlang_backtrace_on_warning_report global option. Global_entrace(), last_warnings(), and last_messages() now support knitr documents. Now we show intervening frames in a lighter colour so that they don’t distract from the important parts of the backtraces but are still easily inspectable. The simplified backtraces tended to hide important context too often. Last_error() and options(rlang_backtrace_on_error = "full") now print the full backtrace tree by default (except for some hidden frames).
