tests/testthat/teardown-cran.R

# Starting in Jan 2021, CRAN starts nagging you about leaving files in the userdir,
# so we delete the data here after the tests have finished.

if(!identical(Sys.getenv("NOT_CRAN"), "true")) {
  pkg_info = pkgfilecache::get_pkg_info("pkgfilecache");
  pkgfilecache::erase_file_cache(pkg_info);
}
dfsp-spirit/pkgfilecache documentation built on Feb. 6, 2024, 4:51 p.m.