tests/testthat/test-classification_codes.R

test_that("classification codes play nice with factor levels", {
  skip_on_cran()

  d <- cansim::get_cansim("10-10-0016") |>
    distinct(`Statement of operations and balance sheet`)

  expect_equal(sum(is.na(d)),0)
})

Try the cansim package in your browser

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

cansim documentation built on April 3, 2025, 10:26 p.m.