tests/testthat/teardown.R

# During teardown, testthat uses the file's current directory
downloads <- dir(path = ".",
                 pattern = "((portal)|(test.sqlite)|(sqlite.db)|(\\d+\\d))")
file.remove(downloads)
unlink("data", recursive = TRUE)
ropensci/ecoretriever documentation built on May 18, 2022, 9:53 a.m.