context("Betalink function (pairwise)")
test_that("It behaves as expected", {
data(anemonefish)
cf <- prepare_networks(anemonefish, TRUE)
expect_that(betalink(cf[[1]], cf[[1]])$S, equals(0))
expect_that(betalink(cf[[2]], cf[[2]])$OS, equals(0))
expect_that(betalink(cf[[3]], cf[[3]])$WN, equals(0))
expect_that(betalink(cf[[3]], cf[[4]])$WN > 0, is_true())
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.