test_that("retrieve_data correctly sets internal env", {
expect_true(is.null(top_env$data))
retrieve_data()
expect_false(is.null(top_env$data))
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.