test_that("stopIfNotMatrix() works", {
expect_error(stopIfNotMatrix(NULL))
expect_error(stopIfNotMatrix(data.frame()))
expect_silent(stopIfNotMatrix(matrix()))
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.