context("Matrix helpers")
test_that("Flatten-unflatten matrix is reversible", {
cv <- cov(iris[, -5])
flat <- flatten_matrix(cv)
unflat <- lowerdiag2mat(flat)
expect_equal(cv, unflat)
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.