tests/testthat/test-clear-cache.R

test_that("multiplication works", {
  expect_equal(2 * 2, 4)
})

test_that("clear cache works", {
  # clear cache of 'test_' files
  pacea_clear_cache() 
  
  # check for files
  file.list <- list.files(pacea_cache(), pattern = "test_")
  expect_equal(length(file.list), 0)
})
pbs-assess/PACea documentation built on April 17, 2025, 11:36 p.m.