library(testthat)
context("checks that datascript is working")
test_that("printed value is correct", {
expect_output(str(source("../datascript.R")),
"Have this script run whatever data cleaning you do")
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.