tests/testthat/setup.R

# Ensure that we don't affect the user's cache when testing
withr::local_envvar(
  R_PKG_CACHE_DIR = tempfile(),
  .local_envir = teardown_env()
)

Try the devtools package in your browser

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

devtools documentation built on March 14, 2026, 5:06 p.m.