tests/testthat/fixtures/error-show-messages.R

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

opt <- Sys.getenv("show_error_messages")
if (nzchar(opt)) {
  options(show.error.messages = as.logical(opt))
}

rlang::abort("Oh no")
r-lib/rlang documentation built on June 24, 2024, 8:09 p.m.