context("gb_countries: test types and errors")
library(sf)
p <- gb_adm0(country = "Mali")
test_that("type of object returned is as expected", {
expect_is(p, "sf")
expect_true(st_geometry_type(p) %in% c("MULTIPOLYGON", "POLYGON"))
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.