tests/testthat/test-overwrite_demo.R

test_that("hasn't changed", {
  expect_snapshot_value(overwrite_demo, style = "json2")
})

test_that("has the expected names", {
  expect_named(
    overwrite_demo,
    c("level", "id_2dii", "name", "sector", "source")
  )
})

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.