Running ‘testthat.R’ [38s/46s]
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 13 | WARN 50 | SKIP 0 | PASS 171 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Failure ('test_afex.R:226:3'): mixed simple model with random-slopes works ──
  `tidy_model` not equal to `expected_tidy_model`.
  Component "groups": Component 1: Component 2: Component 1: Component 2: Component 2: Component 4: Mean relative difference: 0.5109151
  Component "groups": Component 1: Component 2: Component 1: Component 2: Component 3: Component 3: Mean relative difference: 0.4755183
  Backtrace:
      ▆
   1. └─tidystats:::expect_equal_models(model = model, expected_tidy_model = expected_statistics$mixed) at test_afex.R:226:3
   2.   └─testthat::expect_equal(tidy_model, expected_tidy_model, tolerance = tolerance)
  ── Failure ('test_afex.R:240:3'): mixed with expanded random effects terms works ──
  `tidy_model` not equal to `expected_tidy_model`.
  Component "groups": Component 1: Component 2: Component 1: Component 2: Component 2: Component 4: Mean relative difference: 0.5022773
  Component "groups": Component 1: Component 2: Component 1: Component 2: Component 3: Component 3: Mean relative difference: 0.1632772
  Component "groups": Component 1: Component 2: Component 1: Component 2: Component 4: Component 2: Mean absolute difference: 0.00112978
  Backtrace:
      ▆
   1. └─tidystats:::expect_equal_models(model = model, expected_tidy_model = expected_statistics$mixed_expand_RE) at test_afex.R:240:3
   2.   └─testthat::expect_equal(tidy_model, expected_tidy_model, tolerance = tolerance)
  ── Failure ('test_afex.R:254:3'): mixed with random intercept plus random slope works ──
  `tidy_model` not equal to `expected_tidy_model`.
  Component "groups": Component 1: Component 2: Component 1: Component 2: Component 2: Component 4: Mean relative difference: 0.1374001
  Component "groups": Component 1: Component 2: Component 1: Component 2: Component 3: Component 3: Mean relative difference: 15.90515
  Component "groups": Component 1: Component 2: Component 1: Component 2: Component 4: Component 2: Mean relative difference: 0.8018262
  Backtrace:
      ▆
   1. └─tidystats:::expect_equal_models(model = model, expected_tidy_model = expected_statistics$mixed_random_interecept) at test_afex.R:254:3
   2.   └─testthat::expect_equal(tidy_model, expected_tidy_model, tolerance = tolerance)
  ── Failure ('test_afex.R:268:3'): mixed with treatment contrasts checked works ──
  `tidy_model` not equal to `expected_tidy_model`.
  Component "groups": Component 1: Component 2: Component 1: Component 2: Component 2: Component 4: Mean relative difference: 54.71549
  Component "groups": Component 1: Component 2: Component 1: Component 2: Component 3: Component 3: Mean relative difference: 2.03698
  Component "groups": Component 1: Component 2: Component 1: Component 2: Component 4: Component 2: Mean relative difference: 0.9587316
  Backtrace:
      ▆
   1. └─tidystats:::expect_equal_models(model = model, expected_tidy_model = expected_statistics$mixed_contrast) at test_afex.R:268:3
   2.   └─testthat::expect_equal(tidy_model, expected_tidy_model, tolerance = tolerance)
  ── Failure ('test_lme4.R:10:3'): lme4 works ────────────────────────────────────
  `tidy_model` not equal to `expected_tidy_model`.
  Length mismatch: comparison on first 5 components
  Component "groups": Component 2: Component 2: Component 1: Component 3: Component 1: Component 2: Component 1: Component 2: Component 1: Component 3: Mean relative difference: 0.3035495
  Component "groups": Component 2: Component 2: Component 1: Component 3: Component 1: Component 2: Component 1: Component 2: Component 2: Component 3: Mean relative difference: 0.6992413
  Component "groups": Component 2: Component 2: Component 2: Component 2: Component 1: Component 3: Mean relative difference: 0.03292514
  Component "groups": Component 2: Component 2: Component 2: Component 2: Component 2: Component 3: Mean relative difference: 0.06476622
  Component "groups": Component 3: Component 2: Component 1: Component 2: Component 1: Component 2: Component 2: Component 2: Mean relative difference: 0.2110933
  Component "groups": Component 3: Component 2: Component 1: Component 2: Component 1: Component 2: Component 3: Component 3: Mean relative difference: 0.1742998
  Component "groups": Component 3: Component 2: Component 1: Component 2: Component 2: Component 2: Component 2: Component 2: Mean relative difference: 0.03292566
  Component "groups": Component 3: Component 2: Component 1: Component 2: Component 2: Component 2: Component 3: Component 3: Mean relative difference: 0.03404613
  ...
  Backtrace:
      ▆
   1. └─tidystats:::expect_equal_models(model = model, expected_tidy_model = expected_statistics$lme4) at test_lme4.R:10:3
   2.   └─testthat::expect_equal(tidy_model, expected_tidy_model, tolerance = tolerance)
  ── Failure ('test_lme4.R:21:3'): lme4 ML works ─────────────────────────────────
  `tidy_model` not equal to `expected_tidy_model`.
  Length mismatch: comparison on first 4 components
  Component "groups": Component 1: Component 2: Component 1: Component 2: Mean absolute difference: Inf
  Component "groups": Component 1: Component 2: Component 2: Component 2: Mean absolute difference: Inf
  Component "groups": Component 1: Component 2: Component 3: Component 3: Mean absolute difference: Inf
  Component "groups": Component 1: Component 2: Component 4: Component 3: Mean absolute difference: Inf
  Component "groups": Component 2: Component 2: Component 1: Component 3: Component 1: Component 2: Component 1: Component 2: Component 1: Component 3: Mean relative difference: 0.2715963
  Component "groups": Component 2: Component 2: Component 1: Component 3: Component 1: Component 2: Component 1: Component 2: Component 2: Component 3: Mean relative difference: 0.6169572
  Component "groups": Component 2: Component 2: Component 2: Component 2: Component 1: Component 3: Mean relative difference: 0.03051347
  Component "groups": Component 2: Component 2: Component 2: Component 2: Component 2: Component 3: Mean relative difference: 0.06009589
  ...
  Backtrace:
      ▆
   1. └─tidystats:::expect_equal_models(model = model, expected_tidy_model = expected_statistics$lme4_ML) at test_lme4.R:21:3
   2.   └─testthat::expect_equal(tidy_model, expected_tidy_model, tolerance = tolerance)
  ── Failure ('test_lme4.R:30:3'): lme4 slopes works ─────────────────────────────
  `tidy_model` not equal to `expected_tidy_model`.
  Length mismatch: comparison on first 5 components
  Component "groups": Component 2: Component 2: Component 1: Component 3: Component 1: Component 2: Component 1: Component 2: Component 1: Component 3: Mean relative difference: 0.02843459
  Component "groups": Component 2: Component 2: Component 1: Component 3: Component 1: Component 2: Component 1: Component 2: Component 2: Component 3: Mean relative difference: 0.05767774
  Component "groups": Component 2: Component 2: Component 2: Component 2: Component 1: Component 3: Mean relative difference: 0.04953387
  Component "groups": Component 2: Component 2: Component 2: Component 2: Component 2: Component 3: Mean relative difference: 0.1015214
  Component "groups": Component 3: Component 2: Component 1: Component 2: Component 1: Component 2: Component 2: Component 2: Mean relative difference: 0.0338931
  Component "groups": Component 3: Component 2: Component 1: Component 2: Component 1: Component 2: Component 3: Component 3: Mean relative difference: 0.03278199
  Component "groups": Component 3: Component 2: Component 1: Component 2: Component 2: Component 2: Component 2: Component 2: Mean relative difference: 0.7299958
  Component "groups": Component 3: Component 2: Component 1: Component 2: Component 2: Component 2: Component 3: Component 3: Mean relative difference: 2.703646
  ...
  Backtrace:
      ▆
   1. └─tidystats:::expect_equal_models(model = model, expected_tidy_model = expected_statistics$lme4_slopes) at test_lme4.R:30:3
   2.   └─testthat::expect_equal(tidy_model, expected_tidy_model, tolerance = tolerance)
  ── Failure ('test_lme4.R:42:3'): lme4 anova works ──────────────────────────────
  `tidy_model` not equal to `expected_tidy_model`.
  Component "groups": Component 1: Component 2: Component 1: Component 2: Component 4: Component 3: Mean relative difference: 0.06925136
  Backtrace:
      ▆
   1. └─tidystats:::expect_equal_models(model = model, expected_tidy_model = expected_statistics$anova_lme4) at test_lme4.R:42:3
   2.   └─testthat::expect_equal(tidy_model, expected_tidy_model, tolerance = tolerance)
  ── Failure ('test_lmerTest.R:12:3'): lmerTest 1 works ──────────────────────────
  `tidy_model` not equal to `expected_tidy_model`.
  Length mismatch: comparison on first 5 components
  Component "groups": Component 2: Component 2: Component 1: Component 3: Component 1: Component 2: Component 1: Component 2: Component 1: Component 3: Mean relative difference: 0.01568063
  Component "groups": Component 2: Component 2: Component 1: Component 3: Component 1: Component 2: Component 1: Component 2: Component 2: Component 3: Mean relative difference: 0.03160713
  Component "groups": Component 2: Component 2: Component 1: Component 3: Component 2: Component 2: Component 1: Component 2: Component 1: Component 3: Mean absolute difference: 0.065551
  Component "groups": Component 2: Component 2: Component 2: Component 2: Component 1: Component 3: Mean relative difference: 0.05062248
  Component "groups": Component 2: Component 2: Component 2: Component 2: Component 2: Component 3: Mean relative difference: 0.1038076
  Component "groups": Component 3: Component 2: Component 1: Component 2: Component 1: Component 2: Component 2: Component 2: Mean relative difference: 0.02476591
  Component "groups": Component 3: Component 2: Component 1: Component 2: Component 1: Component 2: Component 3: Component 2: Mean relative difference: 0.06337346
  Component "groups": Component 3: Component 2: Component 1: Component 2: Component 1: Component 2: Component 4: Component 3: Mean relative difference: 0.02416733
  ...
  Backtrace:
      ▆
   1. └─tidystats:::expect_equal_models(model = model, expected_tidy_model = expected_statistics$lmerTest1) at test_lmerTest.R:12:3
   2.   └─testthat::expect_equal(tidy_model, expected_tidy_model, tolerance = tolerance)
  ── Failure ('test_lmerTest.R:25:3'): lmerTest 2 works ──────────────────────────
  `tidy_model` not equal to `expected_tidy_model`.
  Length mismatch: comparison on first 5 components
  Component "groups": Component 2: Component 2: Component 1: Component 3: Component 1: Component 2: Component 1: Component 2: Component 1: Component 3: Mean relative difference: 0.2704512
  Component "groups": Component 2: Component 2: Component 1: Component 3: Component 1: Component 2: Component 1: Component 2: Component 2: Component 3: Mean relative difference: 0.6140457
  Component "groups": Component 2: Component 2: Component 2: Component 3: Component 1: Component 2: Component 1: Component 2: Component 1: Component 3: Mean relative difference: 0.5621248
  Component "groups": Component 2: Component 2: Component 2: Component 3: Component 1: Component 2: Component 1: Component 2: Component 2: Component 3: Mean relative difference: 0.8082655
  Component "groups": Component 2: Component 2: Component 3: Component 2: Component 1: Component 3: Mean relative difference: 0.07744851
  Component "groups": Component 2: Component 2: Component 3: Component 2: Component 2: Component 3: Mean relative difference: 0.1488984
  Component "groups": Component 3: Component 2: Component 1: Component 2: Component 1: Component 2: Component 2: Component 2: Mean relative difference: 0.1227027
  Component "groups": Component 3: Component 2: Component 1: Component 2: Component 1: Component 2: Component 3: Component 2: Mean relative difference: 3.735043
  ...
  Backtrace:
      ▆
   1. └─tidystats:::expect_equal_models(model = model, expected_tidy_model = expected_statistics$lmerTest2) at test_lmerTest.R:25:3
   2.   └─testthat::expect_equal(tidy_model, expected_tidy_model, tolerance = tolerance)
  ── Failure ('test_lmerTest.R:37:3'): lmerTest ML works ─────────────────────────
  `tidy_model` not equal to `expected_tidy_model`.
  Length mismatch: comparison on first 4 components
  Component "groups": Component 1: Component 2: Component 1: Component 2: Mean absolute difference: Inf
  Component "groups": Component 1: Component 2: Component 2: Component 2: Mean absolute difference: Inf
  Component "groups": Component 1: Component 2: Component 3: Component 3: Mean absolute difference: Inf
  Component "groups": Component 1: Component 2: Component 4: Component 3: Mean absolute difference: Inf
  Component "groups": Component 2: Component 2: Component 1: Component 3: Component 1: Component 2: Component 1: Component 2: Component 1: Component 3: Mean relative difference: 0.01829808
  Component "groups": Component 2: Component 2: Component 1: Component 3: Component 1: Component 2: Component 1: Component 2: Component 2: Component 3: Mean relative difference: 0.03626137
  Component "groups": Component 2: Component 2: Component 1: Component 3: Component 2: Component 2: Component 1: Component 2: Component 1: Component 3: Mean absolute difference: 0.081321
  Component "groups": Component 2: Component 2: Component 2: Component 2: Component 1: Component 3: Mean relative difference: 0.05651295
  ...
  Backtrace:
      ▆
   1. └─tidystats:::expect_equal_models(model = model, expected_tidy_model = expected_statistics$lmerTest_ML) at test_lmerTest.R:37:3
   2.   └─testthat::expect_equal(tidy_model, expected_tidy_model, tolerance = tolerance)
  ── Failure ('test_lmerTest.R:49:3'): lmerTest anova works ──────────────────────
  `tidy_model` not equal to `expected_tidy_model`.
  Component "groups": Component 1: Component 2: Component 1: Component 2: Component 1: Component 2: Mean relative difference: 14.41206
  Component "groups": Component 1: Component 2: Component 1: Component 2: Component 2: Component 2: Mean relative difference: 14.41206
  Component "groups": Component 1: Component 2: Component 1: Component 2: Component 3: Component 3: Mean relative difference: 12.96264
  Component "groups": Component 1: Component 2: Component 1: Component 2: Component 5: Component 4: Mean relative difference: 0.8530509
  Component "groups": Component 1: Component 2: Component 1: Component 2: Component 6: Component 2: Mean relative difference: 0.999955
  Backtrace:
      ▆
   1. └─tidystats:::expect_equal_models(model = model, expected_tidy_model = expected_statistics$anova_lmerTest) at test_lmerTest.R:49:3
   2.   └─testthat::expect_equal(tidy_model, expected_tidy_model, tolerance = tolerance)
  ── Failure ('test_lmerTest.R:59:3'): lmerTest anova lme4 works ─────────────────
  `tidy_model` not equal to `expected_tidy_model`.
  Component "groups": Component 1: Component 2: Component 1: Component 2: Component 2: Component 2: Mean relative difference: 14.41206
  Component "groups": Component 1: Component 2: Component 1: Component 2: Component 3: Component 2: Mean relative difference: 14.41206
  Component "groups": Component 1: Component 2: Component 1: Component 2: Component 4: Component 3: Mean relative difference: 12.96264
  Backtrace:
      ▆
   1. └─tidystats:::expect_equal_models(model = model, expected_tidy_model = expected_statistics$anova_lmerTest_lme4) at test_lmerTest.R:59:3
   2.   └─testthat::expect_equal(tidy_model, expected_tidy_model, tolerance = tolerance)
  
  [ FAIL 13 | WARN 50 | SKIP 0 | PASS 171 ]
  Error: Test failures
  Execution halted