context("Check the simple Q matrix for correctness")
q <- simpleQ()
test_that ("Simple Q is a matrix", {
expect_that(q, is_a("matrix"))
})
test_that ("Simple Q has correct dimensions", {
expect_that(nrow(q), equals(30))
expect_that(ncol(q), equals(2))
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.