context("geomean")
x <- c(1, 10, 100)
gx <- geomean(x)
test_that('geomean works', {
expect_is(gx, "numeric")
expect_equal(length(gx), 1)
expect_equal(gx, 10)
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.