tests/testthat/test-harmonize_na_values.R

test_locally <- function() {
  examples_dir <- system.file("examples", package = "retroharmonize")

  test_read <- read_rds(
    file.path(examples_dir, "ZA7576.rds"),
    id = "ZA7576",
    doi = "test_doi"
  )

  tested <- harmonize_na_values(df = test_read)

  inherits(tested, "survey")
}


test_that("example works for harmonize_na_values", {
  skip_on_cran()
  expect_true(test_locally())
})

Try the retroharmonize package in your browser

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

retroharmonize documentation built on Jan. 14, 2026, 9:08 a.m.