context("Basic Functions")
test_that('function works and returns correct type', {
nodes <- data.frame(id = c('a','b'))
edges <- data.frame(id = 'ab', source = 'a', target = 'b')
ct <- cytoscape(nodes = nodes, edges = edges)
expect_is(ct, c('cytoscape','htmlwidget'))
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.