library(rlang)

f <- function() g()
g <- function() h()
h <- function() rlang::abort("foo")
f()

Currently needs to be in a different chunk:

last_error()
last_trace()
options(rlang_backtrace_on_error_report = "reminder")
f()
options(rlang_backtrace_on_error_report = "full")
f()


tidyverse/rlang documentation built on Oct. 31, 2024, 5:35 p.m.