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")
tidyverse/rlang documentation built on Oct. 31, 2024, 5:35 p.m.