library(testthat)
test_that("Test mean", {
expect_equal(Rpackage::mean_list(list(c(1,2,1,4), c(2,3,5,10))), list(2, 5))
expect_equal(Rpackage::mean_list(list(c(2,2,2,2))), list(2))
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.