test_that("average_mpg works", {
expect_known_value(average_mpg(mtcars),
file = '../../tests/testthat/average_mpg_works.Rds',
update = FALSE)
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.