Nothing
context("Getting list of countries")
test_that("list of countries is not empty", {
expect_gt(length(wpp_countries()), 0)
expect_gt(length(survey_countries(polymod)), 0)
})
test_that("population data for 2015-2020 can be loaded", {
suppressWarnings({
expect_identical(wpp_age("Belgium", 2010)$year[1], 2010L)
expect_identical(wpp_age("Belgium", 2011)$year[1], 2010L)
expect_identical(wpp_age("Belgium", 2012)$year[1], 2010L)
expect_identical(wpp_age("Belgium", 2013)$year[1], 2015L)
expect_identical(wpp_age("Belgium", 2014)$year[1], 2015L)
expect_identical(wpp_age("Belgium", 2019)$year[1], 2020L)
expect_identical(wpp_age("Belgium", 2021)$year[1], 2020L)
})
})
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.