tests/testthat/setup-cache.R

# Isolate R.cache's root for the whole suite. Individual fixture caches use
# relative subdirectories and are removed when their test scope ends.
local({
  directory <- tempfile("rkorap-test-cache-")
  withr::local_options(list(R.cache.rootPath = directory),
    .local_envir = testthat::teardown_env())
  withr::defer(unlink(directory, recursive = TRUE), envir = testthat::teardown_env())
})

Try the RKorAPClient package in your browser

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

RKorAPClient documentation built on Nov. 12, 2026, 5:11 p.m.