context("greatcircle")
test_that("empty data doesn't crash",{
## issue 252
m <- mapdeck()
res <- mapdeck::add_greatcircle(map = m, data = data.frame())
expect_true( res$x$calls[[1]]$functions == "md_layer_clear" )
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.