test_that("the calculation is close to pi", {
# Note we have access to the testthat package.
expect_lt(abs(resource() - 3.1415926), 1e-3)
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.