tests/testthat/setup-cache.R

# Keep the files tests make in the shidashi cache folder (app records, MCP
# call logs) out of the user's real cache folder. Tests that need their own
# folder set `shidashi.cache_dir` locally.
withr::local_options(
  list(shidashi.cache_dir = tempfile("shidashi-test-cache-")),
  .local_envir = testthat::teardown_env()
)

Try the shidashi package in your browser

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

shidashi documentation built on Nov. 11, 2026, 1:06 a.m.