context("stateProbs")
test_that("Exceptions are thrown",{
m <- example$m
expect_error(stateProbs(m),NA)
})
test_that("State probabilities sum to one",{
m <- example$m
sP <- stateProbs(m)
expect_equal(rowSums(sP),rep(1,nrow(m$data)))
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.