# #2 calls to meanse
# out1 <- meanse(x = mtcars$mpg)
# out2 <- meanse(x = mtcars$mpg, roundDig = 5)
# saveRDS(list(out1=out1, out2=out2),file = 'tests/testthat/meanseout.rda')
test_that("meanse() with defaults and options set", {
expected <- readRDS('meanseout.rda')
expect_equal(meanse(mtcars$mpg), expected[[1]])
expect_equal(meanse(x = mtcars$mpg, roundDig = 5),
expected[[2]])
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.