test_that("cache can be cleared", {
clear_cache()
files <- show_cache()
expect_true(length(files) == 0)
})
test_that("cleared cache induces the expected message in clear_cache()", {
clear_cache()
expect_message(clear_cache(), "No cache to remove.", fixed = TRUE)
})
cat("finished testing cache clearing")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.