context("EAdet")
library(modi)
test_that("Length of vector with infected nodes is equal to no. of rows of input data", {
data(bushfirem, bushfire.weights)
invisible(capture.output(det.res <- EAdet(bushfirem, bushfire.weights, plotting = FALSE)))
expect_equal(length(det.res$infected), dim(bushfirem)[1])
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.