tests/testthat/setup.R

withr::local_options(
  nacho.quiet = TRUE,
  .local_envir = testthat::teardown_env()
)

# Child processes (Chrome, mirai daemons, the app under test) write their temporary files
# in the temporary folder of this R session, which R deletes at the end.
# Otherwise R CMD check reports them as detritus.
session_tempdir <- tempdir()
withr::local_envvar(
  RGL_USE_NULL = "TRUE",
  TMPDIR = session_tempdir,
  TMP = session_tempdir,
  TEMP = session_tempdir,
  .local_envir = testthat::teardown_env()
)

Try the NACHO package in your browser

Any scripts or data that you put into this service are public.

NACHO documentation built on Nov. 2, 2026, 5:09 p.m.