tests/testthat/teardown.R

# Get the test directory path from the environment variable
temp_dir <- Sys.getenv("TEST_DIR")

# Remove the temporary test directory and its contents
unlink(temp_dir, recursive = TRUE)

Try the positron.tutorials package in your browser

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

positron.tutorials documentation built on April 3, 2025, 7:39 p.m.