test_that("map_mwi_odkc returns a leaflet htmlwidget", {
data("odkc_data")
themap <- map_mwi_odkc(
odkc_data$mwi,
sites = odkc_data$sites
)
testthat::expect_equal(class(themap), c("leaflet", "htmlwidget"))
})
# usethis::use_r("map_mwi_odkc")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.