Running 'testthat.R' [8s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(eiCompare)
  Loading required package: eiPack
  Loading required package: ei
  Loading required package: wru
  > 
  > test_check("eiCompare")
  == Warnings ====================================================================
  -- Warning (test_fips_extract.R:18:3): FIPS extractor correctly splits codes of various lengths. --
  invalid factor level, NA generated
  Backtrace:
   1. eiCompare::fips_extract(df = fips_codes, fips_col = "fips", geo = NULL) test_fips_extract.R:18:2
   3. tidyr:::replace_na.default(df[[fips_col]], "")
   5. base::`[<-.factor`(`*tmp*`, !is_complete(data), value = "")
  -- Warning (test_fips_extract.R:71:3): FIPS extractor correctly handles geographic unit argument. --
  invalid factor level, NA generated
  Backtrace:
   1. eiCompare::fips_extract(df = fips_codes, fips_col = "fips", geo = geo) test_fips_extract.R:71:2
   3. tidyr:::replace_na.default(df[[fips_col]], "")
   5. base::`[<-.factor`(`*tmp*`, !is_complete(data), value = "")
  -- Warning (test_fips_extract.R:88:3): FIPS extractor correctly handles geographic unit argument. --
  invalid factor level, NA generated
  Backtrace:
   1. eiCompare::fips_extract(df = fips_codes, fips_col = "fips", geo = geo) test_fips_extract.R:88:2
   3. tidyr:::replace_na.default(df[[fips_col]], "")
   5. base::`[<-.factor`(`*tmp*`, !is_complete(data), value = "")
  -- Warning (test_fips_extract.R:104:3): FIPS extractor correctly handles geographic unit argument. --
  invalid factor level, NA generated
  Backtrace:
   1. eiCompare::fips_extract(df = fips_codes, fips_col = "fips", geo = geo) test_fips_extract.R:104:2
   3. tidyr:::replace_na.default(df[[fips_col]], "")
   5. base::`[<-.factor`(`*tmp*`, !is_complete(data), value = "")
  -- Warning (test_fips_extract.R:117:3): FIPS extractor correctly handles geographic unit argument. --
  invalid factor level, NA generated
  Backtrace:
    1. testthat::expect_error(...) test_fips_extract.R:117:2
    6. eiCompare::fips_extract(df = fips_codes, fips_col = "fips", geo = geo)
    8. tidyr:::replace_na.default(df[[fips_col]], "")
   10. base::`[<-.factor`(`*tmp*`, !is_complete(data), value = "")
  -- Warning (test_fips_extract.R:127:3): FIPS extractor correctly handles geographic unit argument. --
  invalid factor level, NA generated
  Backtrace:
    1. testthat::expect_error(...) test_fips_extract.R:127:2
    6. eiCompare::fips_extract(df = fips_codes, fips_col = "fips", geo = geo)
    8. tidyr:::replace_na.default(df[[fips_col]], "")
   10. base::`[<-.factor`(`*tmp*`, !is_complete(data), value = "")
  -- Warning (test_fips_extract.R:151:3): FIPS extractor uses first column when no column is provided. --
  invalid factor level, NA generated
  Backtrace:
   1. eiCompare::fips_extract(df = fips_codes, fips_col = NULL, geo = NULL) test_fips_extract.R:151:2
   3. tidyr:::replace_na.default(df[[fips_col]], "")
   5. base::`[<-.factor`(`*tmp*`, !is_complete(data), value = "")
  -- Warning (test_fips_extract.R:178:3): FIPS extractor throws an error for incorrect FIPS length. --
  invalid factor level, NA generated
  Backtrace:
    1. testthat::expect_error(...) test_fips_extract.R:178:2
    6. eiCompare::fips_extract(df = fips_codes, fips_col = "fips", geo = geo)
    8. tidyr:::replace_na.default(df[[fips_col]], "")
   10. base::`[<-.factor`(`*tmp*`, !is_complete(data), value = "")
  
  == Failed tests ================================================================
  -- Failure (test_ei_utility.R:28:3): ei results table mungs results correctly --
  `output` not equal to `expected`.
  Component "Candidate": Modes: character, numeric
  Component "Candidate": Attributes: < target is NULL, current is list >
  Component "Candidate": target is character, current is factor
  -- Failure (test_elect_algebra.R:22:5): elect_algebra outputs correctly --------
  `output` not equal to `expected`.
  Component "Pct_White": Modes: character, numeric
  Component "Pct_White": Attributes: < target is NULL, current is list >
  Component "Pct_White": target is character, current is factor
  Component "Pct_NonWhite": Modes: character, numeric
  Component "Pct_NonWhite": Attributes: < target is NULL, current is list >
  Component "Pct_NonWhite": target is character, current is factor
  -- Failure (test_surname_utils.R:57:3): Surname utility functions work correctly. --
  `stripped_special_characters` not equal to `expected_stripped_voter_file`.
  Component "surname": Modes: character, numeric
  Component "surname": Attributes: < target is NULL, current is list >
  Component "surname": target is character, current is factor
  -- Failure (test_surname_utils.R:75:3): Surname utility functions work correctly. --
  `multi_barreled_surnames` not equal to `expected_multi_surnames`.
  Component "surname": Attributes: < Component "levels": Lengths (7, 4) differ (string compare on first 4) >
  Component "surname": Attributes: < Component "levels": 2 string mismatches >
  
  [ FAIL 4 | WARN 8 | SKIP 0 | PASS 77 ]
  Error: Test failures
  Execution halted