tests/testthat/test_lookup_tables.R

test_that(
  "Check lookup tables"
  , {
    expect(
      !any(duplicated(names(lookup_names)))
      , "Some names are duplicated in 'lookup_names'."
    )
    expect(
      !any(duplicated(names(lookup_labels)))
      , "Some names are duplicated in 'lookup_labels'."
    )
  }
)

Try the papaja package in your browser

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

papaja documentation built on Oct. 30, 2024, 9:09 a.m.