x <- bdc_get_world_map()
test_that("returning a polygon data frame", {
testthat::expect_equal(class(x)[1], "SpatialPolygonsDataFrame")
})
test_that("checking variables", {
testthat::expect_equal(names(x), c("name_long", "iso2c"))
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.