tests/testthat/fixtures/error-backtrace-conditionMessage.R

options(
  crayon.enabled = FALSE,
  cli.unicode = FALSE
)

if (nzchar(Sys.getenv("rlang_interactive"))) {
  options(rlang_interactive = TRUE)
}
options(rlang_trace_format_srcrefs = FALSE)

cnd_header.foobar_error <- function(c, ...) {
  "dispatched!"
}

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

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.