Running examples in 'apa-Ex.R' failed
The error most likely occurred in:

> ### Name: anova_apa
> ### Title: Report ANOVA in APA style
> ### Aliases: anova_apa
> 
> ### ** Examples
> 
> # Using the ez package
> library(ez)
> data(ANT)
> 
> x <- ezANOVA(ANT[ANT$error==0,], dv = rt, wid = subnum,
+              within = c(cue, flank), between = group, detailed = TRUE)
Warning: Collapsing data to cell means. *IF* the requested effects are a subset of the full design, you must use the "within_full" argument, else results may be inaccurate.
> anova_apa(x)
           Effect                                                  
1     (Intercept)  F(1, 18) = 340979.56, p < .001, petasq > .99 ***
2           group  F(1, 18) =     18.43, p < .001, petasq = .51 ***
3             cue  F(3, 54) =    516.61, p < .001, petasq = .97 ***
4           flank  F(2, 36) =   1350.60, p < .001, petasq = .99 ***
5       group:cue  F(3, 54) =      2.55, p = .065, petasq = .12 .  
6     group:flank  F(2, 36) =      8.77, p < .001, petasq = .33 ***
7       cue:flank F(6, 108) =      5.19, p < .001, petasq = .22 ***
8 group:cue:flank F(6, 108) =      6.38, p < .001, petasq = .26 ***
> 
> # Using the afex package
> library(afex)
Loading required package: lme4
Loading required package: Matrix
Loading required package: emmeans
************
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
- 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

> data(md_12.1)
> 
> y <- aov_ez(id = "id", dv = "rt", data = md_12.1,
+             within = c("angle", "noise"))
Error in `$<-.data.frame`(`*tmp*`, ges, value = numeric(0)) : 
  replacement has 0 rows, data has 4
Calls: aov_ez ... do.call -> anova -> anova.afex_aov -> $<- -> $<-.data.frame
Execution halted