tests/testthat/setup.R

if (basename(getwd()) == "testthat" && basename(dirname(getwd())) == "tests") {
  withr::defer(testthat::snapshot_accept(path = "."), teardown_env())
}

Try the here package in your browser

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

here documentation built on Jan. 13, 2021, 12:17 p.m.