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()
)

Try the pkgcache package in your browser

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

pkgcache documentation built on Sept. 13, 2024, 1:06 a.m.