Running ‘testthat.R’ [137s/383s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(afex)
  Loading required package: lme4
  Loading required package: Matrix
  ************
  Welcome to afex. For support visit: http://afex.singmann.science/
  - Functions for ANOVAs: aov_car(), aov_ez(), and aov_4()
  - Methods for calculating p-values with mixed(): 'S', 'KR', 'LRT', and 'PB'
  - 'afex_aov' and 'mixed' objects can be passed to emmeans() for follow-up tests
  - Get and set global package options with: afex_options()
  - Set sum-to-zero contrasts globally: set_sum_contrasts()
  - For example analyses see: browseVignettes("afex")
  ************
  
  Attaching package: 'afex'
  
  The following object is masked from 'package:lme4':
  
      lmer
  
  > 
  > test_check("afex")
  Mixed Model Anova Table (Type 3 tests, S-method)
  
  Model: value ~ treatment + (1 | id)
  Data: obk.long
       Effect      df    F p.value
  1 treatment 2, 8.24 2.19    .173
  ---
  Signif. codes:  0 '***' 0.001 '**' 0.01 '*' 0.05 '+' 0.1 ' ' 1
  Mixed Model Anova Table (Type 3 tests, S-method)
  
  Model: value ~ treatment + phase + (1 | id)
  Data: obk.long
       Effect        df         F p.value
  1 treatment  2, 12.78    2.88 +    .093
  2     phase 2, 222.08 38.51 ***   <.001
  ---
  Signif. codes:  0 '***' 0.001 '**' 0.01 '*' 0.05 '+' 0.1 ' ' 1
  Mixed Model Anova Table (Type 3 tests, LRT-method)
  
  Model: value ~ treatment + (1 | id)
  Data: obk.long
  Df full model: 5
       Effect df Chisq p.value
  1 treatment  2   NaN    <NA>
  ---
  Signif. codes:  0 '***' 0.001 '**' 0.01 '*' 0.05 '+' 0.1 ' ' 1
  Mixed Model Anova Table (Type 3 tests, LRT-method)
  
  Model: value ~ treatment + phase + (1 | id)
  Data: obk.long
  Df full model: 7
       Effect df Chisq p.value
  1 treatment  2   NaN    <NA>
  2     phase  2   NaN    <NA>
  ---
  Signif. codes:  0 '***' 0.001 '**' 0.01 '*' 0.05 '+' 0.1 ' ' 1
  Mixed Model Anova Table (Type 3 tests, PB-method)
  
  Model: use ~ urban + (1 | district)
  Data: Contraception
    Effect df Chisq p.value
  1  urban  1 31.28    .333
  ---
  Signif. codes:  0 '***' 0.001 '**' 0.01 '*' 0.05 '+' 0.1 ' ' 1
  Mixed Model Anova Table (Type 3 tests, PB-method)
  
  Model: use ~ urban + livch + (1 | district)
  Data: Contraception
    Effect df Chisq p.value
  1  urban  1 36.33    .333
  2  livch  3 77.91    .333
  ---
  Signif. codes:  0 '***' 0.001 '**' 0.01 '*' 0.05 '+' 0.1 ' ' 1
  [ FAIL 9 | WARN 496 | SKIP 29 | PASS 332 ]
  
  ══ Skipped tests (29) ══════════════════════════════════════════════════════════
  • On CRAN (28): 'test-afex_plot-basics.R:11:3', 'test-afex_plot-basics.R:76:3',
    'test-afex_plot-basics.R:111:3', 'test-afex_plot-basics.R:140:3',
    'test-afex_plot-basics.R:346:3', 'test-afex_plot-basics.R:360:3',
    'test-afex_plot-bugs.R:6:3', 'test-afex_plot-bugs.R:21:3',
    'test-afex_plot-bugs.R:43:3', 'test-afex_plot-bugs.R:79:3',
    'test-afex_plot-default-support.R:11:3',
    'test-afex_plot-default-support.R:20:3',
    'test-afex_plot-default-support.R:38:3',
    'test-afex_plot-default-support.R:66:3', 'test-afex_plot-vignette.R:4:3',
    'test-afex_plot-vignette.R:38:3', 'test-afex_plot-vignette.R:114:3',
    'test-aov_car-bugs.R:253:3', 'test-emmeans-interface.R:144:3',
    'test-emmeans-interface.R:209:3', 'test-mixed-bugs.R:6:3',
    'test-mixed-bugs.R:19:3', 'test-mixed-structure.R:214:5',
    'test-mixed-structure.R:242:3', 'test-mixed-structure.R:264:3',
    'test-mixed-structure.R:305:3', 'test-mixed-structure.R:349:3',
    'test-mixed-structure.R:369:3'
  • empty test (1): 'test-mixed-structure.R:86:1'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Failure ('test-mixed-mw.R:10:3'): mixed: Maxell & Delaney (2004), Table 16.3, p. 837 ──
  `x` not equal to `expected`.
  1/1 mismatches
  [1] 3.28 - 9.97 == -6.69
  Backtrace:
      ▆
   1. └─testthat::expect_that(round(anova(mixed1_orig)[1, "F"], 2), equals(9.97)) at test-mixed-mw.R:10:3
   2.   └─testthat (local) condition(object)
   3.     └─testthat::expect_equal(x, expected, ..., expected.label = label)
  ── Failure ('test-mixed-mw.R:11:3'): mixed: Maxell & Delaney (2004), Table 16.3, p. 837 ──
  `x` not equal to `expected`.
  1/1 mismatches
  [1] 0.83 - 0.03 == 0.8
  Backtrace:
      ▆
   1. └─testthat::expect_that(...) at test-mixed-mw.R:11:3
   2.   └─testthat (local) condition(object)
   3.     └─testthat::expect_equal(x, expected, ..., expected.label = label)
  ── Failure ('test-mixed-mw.R:20:3'): mixed: Maxell & Delaney (2004), Table 16.6, p. 845 ──
  unname(round(fixef(mixed2_orig$full_model), 4)) not equivalent to c(35.6261, -8.1485).
  2/2 mismatches (average diff: 0.0848)
  [1] 35.54 - 35.63 == -0.0821
  [2] -8.06 - -8.15 ==  0.0875
  ── Failure ('test-mixed-mw.R:23:3'): mixed: Maxell & Delaney (2004), Table 16.6, p. 845 ──
  `x` not equal to `expected`.
  2/2 mismatches (average diff: 1.12)
  [1] 4.16 - 3.23 == 0.927
  [2] 5.86 - 4.55 == 1.315
  Backtrace:
      ▆
   1. └─testthat::expect_that(...) at test-mixed-mw.R:23:3
   2.   └─testthat (local) condition(object)
   3.     └─testthat::expect_equal(x, expected, ..., expected.label = label)
  ── Failure ('test-mixed-mw.R:27:3'): mixed: Maxell & Delaney (2004), Table 16.6, p. 845 ──
  `x` not equal to `expected`.
  1/1 mismatches
  [1] 1.9 - 3.2 == -1.3
  Backtrace:
      ▆
   1. └─testthat::expect_that(round(mixed2_orig[[1]]$F, 1), equals(3.2)) at test-mixed-mw.R:27:3
   2.   └─testthat (local) condition(object)
   3.     └─testthat::expect_equal(x, expected, ..., expected.label = label)
  ── Failure ('test-mixed-mw.R:39:3'): mixed: Maxell & Delaney (2004), Table 16.7, p. 851 (uses simple F!) ──
  `x` not equivalent to `expected`.
  2/3 mismatches (average diff: 0.26)
  [1] 20.05 - 20.25 == -0.20
  [2] -7.25 - -7.57 ==  0.32
  Backtrace:
      ▆
   1. └─testthat::expect_that(...) at test-mixed-mw.R:39:3
   2.   └─testthat (local) condition(object)
   3.     └─testthat::expect_equivalent(x, expected, expected.label = label)
  ── Failure ('test-mixed-mw.R:41:3'): mixed: Maxell & Delaney (2004), Table 16.7, p. 851 (uses simple F!) ──
  `x` not equal to `expected`.
  3/3 mismatches (average diff: 3.42)
  [1] 12.1 - 5.82 == 6.30
  [2]  5.8 - 2.72 == 3.08
  [3]  1.7 - 0.81 == 0.89
  Backtrace:
      ▆
   1. └─testthat::expect_that(...) at test-mixed-mw.R:41:3
   2.   └─testthat (local) condition(object)
   3.     └─testthat::expect_equal(x, expected, ..., expected.label = label)
  ── Failure ('test-mixed-mw.R:45:3'): mixed: Maxell & Delaney (2004), Table 16.7, p. 851 (uses simple F!) ──
  `x` not equal to `expected`.
  2/2 mismatches (average diff: 6)
  [1] 2 - 8 == -6
  [2] 2 - 8 == -6
  Backtrace:
      ▆
   1. └─testthat::expect_that(...) at test-mixed-mw.R:45:3
   2.   └─testthat (local) condition(object)
   3.     └─testthat::expect_equal(x, expected, ..., expected.label = label)
  ── Failure ('test-mixed-mw.R:58:3'): mixed: Maxell & Delaney (2004), Table 16.10, p. 862 (does not replicate the table!) ──
  `x` not equivalent to `expected`.
  4/4 mismatches (average diff: 0.153)
  [1] 35.90 - 36.10 == -0.20
  [2] -8.87 - -9.07 ==  0.20
  [3]  0.72 -  0.64 ==  0.08
  [4] -0.10 -  0.03 == -0.13
  Backtrace:
      ▆
   1. └─testthat::expect_that(...) at test-mixed-mw.R:58:3
   2.   └─testthat (local) condition(object)
   3.     └─testthat::expect_equivalent(x, expected, expected.label = label)
  
  [ FAIL 9 | WARN 496 | SKIP 29 | PASS 332 ]
  Deleting unused snapshots:
  • afex_plot-basics/afex-plot-connecting-individual-points-works.svg
  • afex_plot-basics/geoms-work-box-plot.svg
  • afex_plot-basics/geoms-work-boxjitter-1.svg
  • afex_plot-basics/geoms-work-boxjitter-2.svg
  • afex_plot-basics/geoms-work-boxjitter-3.svg
  • afex_plot-basics/geoms-work-geom-count.svg
  • afex_plot-basics/geoms-work-ggbeeswarm-geom-beeswarm.svg
  • afex_plot-basics/geoms-work-ggbeeswarm-geom-quasirandom.svg
  • afex_plot-basics/geoms-work-jitterdodge.svg
  • afex_plot-basics/geoms-work-violin-with-colour.svg
  • afex_plot-basics/geoms-work-violin.svg
  • afex_plot-basics/lme4-mermod-plot-2.svg
  • afex_plot-basics/lme4-mermod-plot-3.svg
  • afex_plot-basics/mixed-model-1.svg
  • afex_plot-basics/mixed-model-2.svg
  • afex_plot-basics/mixed-model-3.svg
  • afex_plot-basics/mixed-model-4.svg
  • afex_plot-basics/multiple-geoms-work-1.svg
  • afex_plot-basics/multiple-geoms-work-2.svg
  • afex_plot-basics/one-way-within.svg
  • afex_plot-basics/plot-first-for-afex-plot-works-1.svg
  • afex_plot-basics/plot-first-for-afex-plot-works-2.svg
  • afex_plot-basics/plot-first-for-afex-plot-works-3.svg
  • afex_plot-basics/plot-first-for-afex-plot-works-4.svg
  • afex_plot-basics/two-way.svg
  • afex_plot-basics/x-trace-panel.svg
  • afex_plot-bugs/afex-plot-binomial-glm-with-factor-2.svg
  • afex_plot-bugs/afex-plot-dv-y-works.svg
  • afex_plot-bugs/afex-plot-lmm-type-2.svg
  • afex_plot-bugs/afex-plot-mermod-objects-with-missing-data.svg
  • afex_plot-default-support/afex-plots-binomial-glm-1.svg
  • afex_plot-default-support/afex-plots-binomial-glm-2.svg
  • afex_plot-default-support/afex-plots-lm-model-2.svg
  • afex_plot-default-support/afex-plots-nlme-2.svg
  • afex_plot-default-support/afex-plots-nlme-3.svg
  • afex_plot-default-support/afex-plots-nlme-4.svg
  • afex_plot-default-support/afex-plots-nlme-5.svg
  • afex_plot-default-support/afex-plots-poisson-glm-1.svg
  • afex_plot-default-support/afex-plots-poisson-glm-2.svg
  • afex_plot-vignette/afex-plot-glmmtmb-1.svg
  • afex_plot-vignette/afex-plot-glmmtmb-2.svg
  • afex_plot-vignette/afex-plot-glmmtmb-3.svg
  Error: Test failures
  Execution halted