context("cache_put")
val <- rnorm(3) # random value
key <- "test/rnorm/3" # fixed location
test_that("cache_put", {
expect_equal(val, cache_put(val, key))
})
context("cache_get")
test_that("cache_get", {
expect_equal(cache_get(key), val)
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.