Running ‘testthat.R’ [103s/292s]
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
  - NEWS: emmeans() for ANOVA models now uses model = 'multivariate' as default.
  - Get and set global package options with: afex_options()
  - Set orthogonal 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, 13.00 2.91 +    .090
  ---
  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, 13.00    2.91 +    .090
  2     phase 2, 222.00 38.48 ***   <.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 5.93 +    .052
  ---
  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    5.93 +    .052
  2     phase  2 66.67 ***   <.001
  ---
  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 2 | WARN 0 | SKIP 18 | PASS 376 ]
  
  ══ Skipped tests ═══════════════════════════════════════════════════════════════
  • On CRAN (17)
  • empty test (1)
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Failure (test-mixed-mw.R:20:3): mixed: Maxell & Delaney (2004), Table 16.6, p. 845 ──
  `x` not equal to `expected`.
  names for target but not for current
  Backtrace:
      ▆
   1. └─testthat::expect_that(...) at test-mixed-mw.R:20:2
   2.   └─testthat condition(object)
   3.     └─testthat::expect_equal(x, expected, ..., expected.label = label)
  ── Failure (test-mixed-mw.R:33:3): mixed: Maxell & Delaney (2004), Table 16.7, p. 851 (uses simple F!) ──
  `x` not equal to `expected`.
  names for target but not for current
  Backtrace:
      ▆
   1. └─testthat::expect_that(...) at test-mixed-mw.R:33:2
   2.   └─testthat condition(object)
   3.     └─testthat::expect_equal(x, expected, ..., expected.label = label)
  
  [ FAIL 2 | WARN 0 | SKIP 18 | PASS 376 ]
  Error: Test failures
  Execution halted