test_that("Wrong type", {
expect_error(calc_kurtosis(x = "a"))
expect_error(calc_kurtosis(x = TRUE))
expect_error(calc_kurtosis(x = x,type = 1))
expect_error(calc_kurtosis(x = x,type = TRUE))
})
test_that("Invalid option", {
expect_error(calc_kurtosis(x = x,type = "a"))
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.