tests/testthat/setup.R

withr::local_envvar(
  R_USER_CACHE_DIR = tempfile(),
  .local_envir = teardown_env()
)

withr::defer(
  .Call(pkgcache__gcov_flush),
  teardown_env()
)

withr::defer(
  bioconductor$.internal$clear_cache(),
  teardown_env()
)
r-lib/pkgcache documentation built on April 7, 2024, 5:57 a.m.