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()


Try the rlang package in your browser

Any scripts or data that you put into this service are public.

rlang documentation built on Nov. 4, 2023, 9:06 a.m.