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);
}

Try the pkgfilecache package in your browser

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

pkgfilecache documentation built on May 18, 2021, 1:06 a.m.