tests/testthat/test-hse2001.R

library(hseclean)

root_dir <- "/Volumes/Shared/"


test_that("2001 HSE data can be read and processed", {
  
  expect_error(data <- read_2001(root = root_dir), NA)
  expect_warning(data <- read_2001(root = root_dir), NA)
  
  data <- read_2001(root = root_dir)
  
  data <- clean_age(data)
  
})
dosgillespie/hseclean documentation built on May 2, 2020, 1:15 a.m.