tests/testthat/test-utils.R

test_that("define() produces the expected output", {
  expected <- c(
    "* `isos` (character): Countries in region, defined by iso code.",
    "* `region` (character): Benchmark region name.",
    "* `source` (character): Source publication from which the regions are defined."
  )
  actual <- unclass(define("region_isos"))
  expect_equal(actual, expected)
})

Try the r2dii.data package in your browser

Any scripts or data that you put into this service are public.

r2dii.data documentation built on Nov. 14, 2023, 1:09 a.m.