Running ‘testthat.R’ [106s/108s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > 
  > all.pkgs <- c("testthat", "dplyr", "dtplyr", "data.table", "magrittr", "survey", "zoo")
  > 
  > 
  > if (all(vapply(all.pkgs, requireNamespace, logical(1L), quietly = TRUE))) {
  +   
  +   library(testthat)
  +   library(grattan)
  +   library(hutils)
  +   library(data.table)
  +   library(magrittr)
  +   
  +   if (identical(Sys.getenv("CIRCLECI"), "true")) {
  +     test_check("grattan",
  +                reporter = JunitReporter$new(file = "junit_result.xml"))
  +   } else {
  +     test_check("grattan")
  +   }
  + }
  
  Attaching package: 'magrittr'
  
  The following objects are masked from 'package:testthat':
  
      equals, is_less_than, not
  
  ── 1. Error: income tax checks (@test_incometax_single.R#6)  ───────────────────
  Entries  were not in correct form.
  First bad entry: NA
  Backtrace:
   1. testthat::expect_warning(income_tax(30000), regexp = "fy\\.year is missing, using current financial year")
   6. grattan::income_tax(30000)
   7. grattan:::rolling_income_tax(...)
  
  ── 2. Failure: Partners (standard) (@test_youth_allowance.R#240)  ──────────────
  length(...) not equal to 1L.
  1/1 mismatches
  [1] 0 - 1 == -1
  
  ── 3. Failure: Partners (standard) (@test_youth_allowance.R#245)  ──────────────
  length(...) not equal to 6L.
  1/1 mismatches
  [1] 0 - 6 == -6
  
  ── 4. Failure: Partners (standard) (@test_youth_allowance.R#251)  ──────────────
  ...[] not equal to youth_allowance(...).
  Lengths differ: 1 is not 0
  
  ── 5. Failure: Partners (standard) (@test_youth_allowance.R#261)  ──────────────
  ...[] not equal to youth_allowance(...).
  Lengths differ: 1 is not 0
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  [ OK: 818 | SKIPPED: 107 | WARNINGS: 0 | FAILED: 5 ]
  1. Error: income tax checks (@test_incometax_single.R#6) 
  2. Failure: Partners (standard) (@test_youth_allowance.R#240) 
  3. Failure: Partners (standard) (@test_youth_allowance.R#245) 
  4. Failure: Partners (standard) (@test_youth_allowance.R#251) 
  5. Failure: Partners (standard) (@test_youth_allowance.R#261) 
  
  Error: testthat unit tests failed
  Execution halted