Nothing
skip_on_cran()
skip_if(!curl::has_internet())
skip_if(httr::http_error("ourworldindata.org"))
test_that("test core owid function", {
search_result <- owid_search("gdp")
data <- owid("water-productivity", rename = "water_prod")
expect_equal(class(data), c("owid", "data.table", "data.frame"))
expect_equal(colnames(data), c("entity", "code", "year", "water_prod"))
})
test_that("test multiple cols", {
data <- owid("learning-outcomes-vs-gdp-per-capita",
rename = c("pop", "continent", "learning", "gdp")
)
expect_equal(colnames(data), c("entity", "code", "year", "pop", "continent", "learning", "gdp"))
})
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.