tests/testthat/setup.R

# Run before any test
dir.create("./tests_rslts")
writeLines(text = "mytests", con = "./tests_rslts/fortests.txt")


# Run after all tests
withr::defer(unlink("./tests_rslts", recursive = TRUE), teardown_env())

Try the anabel package in your browser

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

anabel documentation built on April 4, 2025, 1:58 a.m.