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")
hadley/rlang documentation built on April 24, 2024, 1:05 a.m.