Running ‘testthat.R’ [39s/91s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(tidystats)
  This version of tidystats uses a new and improved way of structuring statistics. This breaks previous (major) versions of tidystats.
  > 
  > test_check("tidystats")
  [ FAIL 4 | WARN 0 | SKIP 0 | PASS 180 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test_lme4.R:21:3'): lme4 ML works ───────────────────────────────────
  <subscriptOutOfBoundsError/error/condition>
  Error in `summary$AICtab[["deviance"]]`: subscript out of bounds
  Backtrace:
      ▆
   1. └─tidystats:::expect_equal_models(model = model, expected_tidy_model = expected_statistics$lme4_ML) at test_lme4.R:21:3
   2.   ├─tidystats::tidy_stats(model)
   3.   └─tidystats:::tidy_stats.lmerMod(model)
   4.     └─tidystats:::add_statistic(...)
   5.       └─tidystats:::is_blank(value)
  ── Failure ('test_lme4.R:56:3'): lme4 anova model comparison works ─────────────
  `tidy_model` not equal to `expected_tidy_model`.
  Component "groups": Component 1: Component 2: Component 1: Component 2: Length mismatch: comparison on first 4 components
  Component "groups": Component 1: Component 2: Component 2: Component 2: Length mismatch: comparison on first 7 components
  Component "groups": Component 1: Component 2: Component 2: Component 2: Component 5: Component 1: 1 string mismatch
  Component "groups": Component 1: Component 2: Component 2: Component 2: Component 5: Component 2: 1 string mismatch
  Component "groups": Component 1: Component 2: Component 2: Component 2: Component 5: Component 3: Mean relative difference: 40.63962
  Component "groups": Component 1: Component 2: Component 2: Component 2: Component 6: Names: 1 string mismatch
  Component "groups": Component 1: Component 2: Component 2: Component 2: Component 6: Length mismatch: comparison on first 2 components
  Component "groups": Component 1: Component 2: Component 2: Component 2: Component 6: Component 1: 1 string mismatch
  Component "groups": Component 1: Component 2: Component 2: Component 2: Component 6: Component 2: Modes: numeric, character
  ...
  Backtrace:
      ▆
   1. └─tidystats:::expect_equal_models(model = model, expected_tidy_model = expected_statistics$anova_models) at test_lme4.R:56:3
   2.   └─testthat::expect_equal(tidy_model, expected_tidy_model, tolerance = tolerance)
  ── Error ('test_lmerTest.R:37:3'): lmerTest ML works ───────────────────────────
  <subscriptOutOfBoundsError/error/condition>
  Error in `summary$AICtab[["deviance"]]`: subscript out of bounds
  Backtrace:
      ▆
   1. └─tidystats:::expect_equal_models(model = model, expected_tidy_model = expected_statistics$lmerTest_ML) at test_lmerTest.R:37:3
   2.   ├─tidystats::tidy_stats(model)
   3.   └─tidystats:::tidy_stats.lmerModLmerTest(model)
   4.     ├─tidystats:::add_statistic(...)
   5.     └─tidystats:::add_statistic(...)
   6.       └─tidystats:::is_blank(value)
  ── Failure ('test_lmerTest.R:70:3'): lmerTest anova fit works ──────────────────
  `tidy_model` not equal to `expected_tidy_model`.
  Component "groups": Component 1: Component 2: Component 1: Component 2: Length mismatch: comparison on first 4 components
  Component "groups": Component 1: Component 2: Component 2: Component 2: Length mismatch: comparison on first 7 components
  Component "groups": Component 1: Component 2: Component 2: Component 2: Component 5: Component 1: 1 string mismatch
  Component "groups": Component 1: Component 2: Component 2: Component 2: Component 5: Component 2: 1 string mismatch
  Component "groups": Component 1: Component 2: Component 2: Component 2: Component 5: Component 3: Mean relative difference: 40.57495
  Component "groups": Component 1: Component 2: Component 2: Component 2: Component 6: Names: 1 string mismatch
  Component "groups": Component 1: Component 2: Component 2: Component 2: Component 6: Length mismatch: comparison on first 2 components
  Component "groups": Component 1: Component 2: Component 2: Component 2: Component 6: Component 1: 1 string mismatch
  Component "groups": Component 1: Component 2: Component 2: Component 2: Component 6: Component 2: Modes: numeric, character
  ...
  Backtrace:
      ▆
   1. └─tidystats:::expect_equal_models(model = model, expected_tidy_model = expected_statistics$anova_lmerTest_fit) at test_lmerTest.R:70:3
   2.   └─testthat::expect_equal(tidy_model, expected_tidy_model, tolerance = tolerance)
  
  [ FAIL 4 | WARN 0 | SKIP 0 | PASS 180 ]
  Error: Test failures
  Execution halted