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


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