Running ‘testthat.R’ [101s/127s]
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")
  ── Skip (test-afex_plot-bugs.R:7:3): mixed models with Type = 2 work ───────────
  Reason: On CRAN
  
  ── Skip (test-afex_plot-bugs.R:22:3): response variable y works ────────────────
  Reason: On CRAN
  
  ── Skip (test-afex_plot-bugs.R:44:3): merMod objects with missing data can be pl
  Reason: On CRAN
  
  ── FAILURE (test-afex_plot-bugs.R:85:3): binomial models plot data correctly wit
  `p1` not equivalent to `p2`.
  Component "layers": Component 1: Component 7: Component 5: Component 1: target is not list-like
  Component "layers": Component 1: Component 11: Component 1: target is not list-like
  Component "layers": Component 2: Component 11: Component 1: target is not list-like
  Component "layers": Component 3: Component 11: Component 1: target is not list-like
  Component "scales": Component "super": Component "...": target is not list-like
  Component "scales": Component "super": Component "env": Component "self": Component "super": Component "...": target is not list-like
  Component "scales": Component "super": Component "env": Component "self": Component "super": Component "env": Component "self": Component "super": Component "...": target is not list-like
  Component "scales": Component "super": Component "env": Component "self": Component "super": Component "env": Component "self": Component "super": Component "env": Component "self": Component "super": Component "...": target is not list-like
  Component "scales": Component "super": Component "env": Component "self": Component "super": Component "env": Component "self": Component "super": Component "env": Component "self": Component "super": Component "env": Component "self": Component "super": Component "...": target is not list-like
  ...
  
  ── Skip (test-afex_plot-vignette.R:4:3): glmmTMB object ────────────────────────
  Reason: On CRAN
  
  ── Skip (test-afex_plot-vignette.R:39:3): rstanarm plots ───────────────────────
  Reason: On CRAN
  
  ── Skip (test-afex_plot-vignette.R:104:3): brms plots ──────────────────────────
  Reason: On CRAN
  
  ── Warning (test-aov_car-bugs.R:244:3): aov_ez works with multiple covariates ──
  longer object length is not a multiple of shorter object length
  
  ── Skip (test-aov_car-bugs.R:250:3): aov_car works with p.val adjustment == NA f
  Reason: On CRAN
  
  ── Skip (test-emmeans-interface.R:139:3): mixed works with emmeans ─────────────
  Reason: On CRAN
  
  ── Skip (test-emmeans-interface.R:204:3): emmeans with mixed & expand_re = TRUE 
  Reason: On CRAN
  
  ── Skip (test-mixed-bugs.R:6:3): all_fit = TRUE works with emmeans ─────────────
  Reason: On CRAN
  
  ── Skip (test-mixed-bugs.R:19:3): inverse.gaussian works ───────────────────────
  Reason: On CRAN
  
  ── Skip (test-mixed-structure.R:88:1): mixed, obk.long: multicore loads lme4 and
  Reason: empty test
  
  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 +    .090
  ---
  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 +    .090
  2     phase 2, 222 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
  ── Skip (test-mixed-structure.R:219:5): mixed: expand_re argument (longer) ─────
  Reason: On CRAN
  
  ── Skip (test-mixed-structure.R:246:3): mixed: return=data, expand_re argument, 
  Reason: On CRAN
  
  ── Skip (test-mixed-structure.R:275:3): mixed with all_fit = TRUE ──────────────
  Reason: On CRAN
  
  ── Skip (test-mixed-structure.R:317:3): mixed with all available methods ───────
  Reason: On CRAN
  
  ── Skip (test-mixed-structure.R:361:3): mixed all_fit = TRUE works with old meth
  Reason: On CRAN
  
  ── Skip (test-mixed-structure.R:383:3): mixed all_fit = TRUE works with new (KR)
  Reason: On CRAN
  
  ── Skipped tests  ──────────────────────────────────────────────────────────────
  ● On CRAN (17)
  ● empty test (1)
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  FAILURE (test-afex_plot-bugs.R:85:3): binomial models plot data correctly with factor DVs
  Warning (test-aov_car-bugs.R:244:3): aov_ez works with multiple covariates
  
  [ FAIL 1 | WARN 1 | SKIP 18 | PASS 382 ]
  Error: Test failures
  Execution halted