Running ‘testthat.R’ [132s/141s]
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(): 'KR', 'S', 'LRT', and 'PB'
  - 'afex_aov' and 'mixed' objects can be passed to emmeans() for follow-up tests
  - NEWS: library('emmeans') now needs to be called explicitly!
  - 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")
  ── 1. Error: aov_ez works with multiple covariates (@test-aov_car-bugs.R#237)  ─
  object 'msq' not found
  
  Mixed Model Anova Table (Type 3 tests, KR-method)
  
  Model: value ~ treatment + (1 | id)
  Data: obk.long
       Effect    df      F p.value
  1 treatment 2, 13 2.91 +     .09
  ---
  Signif. codes:  0 '***' 0.001 '**' 0.01 '*' 0.05 '+' 0.1 ' ' 1
  Mixed Model Anova Table (Type 3 tests, KR-method)
  
  Model: value ~ treatment + phase + (1 | id)
  Data: obk.long
       Effect     df         F p.value
  1 treatment  2, 13    2.91 +     .09
  2     phase 2, 222 38.48 ***  <.0001
  ---
  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 +     .05
  ---
  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 +     .05
  2     phase  2 66.67 ***  <.0001
  ---
  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     .33
  ---
  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     .33
  2  livch  3 77.91     .33
  ---
  Signif. codes:  0 '***' 0.001 '**' 0.01 '*' 0.05 '+' 0.1 ' ' 1
  ══ testthat results  ═══════════════════════════════════════════════════════════
  [ OK: 356 | SKIPPED: 10 | WARNINGS: 6 | FAILED: 1 ]
  1. Error: aov_ez works with multiple covariates (@test-aov_car-bugs.R#237) 
  
  Error: testthat unit tests failed
  Execution halted