tests/testthat/setup.R

old_cli_width <- options(cli.width = 200)

if (require("withr")) {
  withr::defer(
    {
      options(old_cli_width)
      if (file.exists("Rplots.pdf")) file.remove("Rplots.pdf")
    },
    teardown_env()
  )
}
davidgohel/oxbase documentation built on June 12, 2025, 12:36 a.m.