context("test-consistency")
test_that("consistency errors", {
expect_error(check_consistency("toto", matrix(0, c(1, 1)), matrix(0, 1)))
expect_error(check_consistency(matrix(0, c(1, 1)), matrix(0, c(1, 1)), c(2)))
expect_error(check_consistency(matrix(0, c(20, 1)), matrix(0, nrow = 20, ncol = 2), c(rep(0, 10), rep(1, 10))))
expect_error(check_consistency(matrix(0, c(20, 1)), matrix(0, c(20, 1)), c(rep(0, 10), rep(1, 9))))
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.