test_that("Wrong type", {
expect_error(calc_error(x = "a"))
expect_error(calc_error(y = "a"))
})
test_that("Wrong length", {
expect_error(calc_error(x = 1:3, y = 1:4))
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.