Running ‘testthat.R’
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(duawranglr)
  > 
  > test_check("duawranglr")
  ── 1. Error: Failed to read admin file of type: Stata (DTA) (@test-read_dua_file
  object '_haven_df_parse_dta_file' not found
  Backtrace:
   1. duawranglr:::sreader__("./testdata/admin_data.dta")
   2. haven::read_stata(file, ...)
   3. haven:::df_parse_dta_file(...)
  
  ── 2. Error: Failed to read admin file of type: SAS (sas7bdat) (@test-read_dua_f
  object '_haven_df_parse_sas_file' not found
  Backtrace:
   1. duawranglr:::sreader__("./testdata/admin_data.sas7bdat")
   2. haven::read_sas(file, ...)
   3. haven:::df_parse_sas_file(...)
  
  ── 3. Error: Failed to read admin file of type: SPSS (sav) (@test-read_dua_file.
  object '_haven_df_parse_sav_file' not found
  Backtrace:
   1. duawranglr:::sreader__("./testdata/admin_data.sav")
   2. haven::read_spss(file, ...)
   3. haven::read_sav(...)
   4. haven:::df_parse_sav_file(...)
  
  ── 4. Error: Failed to read crosswalk file of type: Stata (DTA) (@test-sreader__
  object '_haven_df_parse_dta_file' not found
  Backtrace:
   1. duawranglr:::sreader__("./testdata/dua_one.dta")
   2. haven::read_stata(file, ...)
   3. haven:::df_parse_dta_file(...)
  
  ── 5. Error: Failed to read crosswalk file of type: SAS (sas7bdat) (@test-sreade
  object '_haven_df_parse_sas_file' not found
  Backtrace:
   1. duawranglr:::sreader__("./testdata/dua_one.sas7bdat")
   2. haven::read_sas(file, ...)
   3. haven:::df_parse_sas_file(...)
  
  ── 6. Error: Failed to read crosswalk file of type: SPSS (sav) (@test-sreader__.
  object '_haven_df_parse_sav_file' not found
  Backtrace:
   1. duawranglr:::sreader__("./testdata/dua_one.sav")
   2. haven::read_spss(file, ...)
   3. haven::read_sav(...)
   4. haven:::df_parse_sav_file(...)
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  [ OK: 40 | SKIPPED: 0 | WARNINGS: 0 | FAILED: 6 ]
  1. Error: Failed to read admin file of type: Stata (DTA) (@test-read_dua_file.R#54) 
  2. Error: Failed to read admin file of type: SAS (sas7bdat) (@test-read_dua_file.R#63) 
  3. Error: Failed to read admin file of type: SPSS (sav) (@test-read_dua_file.R#72) 
  4. Error: Failed to read crosswalk file of type: Stata (DTA) (@test-sreader__.R#59) 
  5. Error: Failed to read crosswalk file of type: SAS (sas7bdat) (@test-sreader__.R#69) 
  6. Error: Failed to read crosswalk file of type: SPSS (sav) (@test-sreader__.R#79) 
  
  Error: testthat unit tests failed
  Execution halted