context("igraphToJson works")
data(flightGraph)
thisJson <- igraphToJson(flightGraph)
test_that('igraphToJson returns a json object', {
expect_is(thisJson, 'json')
expect_equal(length(thisJson), 1)
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.