options(
  rlang_backtrace_on_error_report = "full"
)

f <- function(do = stop) g(do)
g <- function(do) h(do)
h <- function(do) do("foo")
f()
rlang::global_entrace()
f()
f(warning)
options(
  rlang_backtrace_on_warning_report = "full"
)
f(warning)
rlang::last_warnings()


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.