Running examples in ‘ez-Ex.R’ failed
The error most likely occurred in:

> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: ezPlot
> ### Title: Plot data from a factorial experiment
> ### Aliases: ezPlot
> 
> ### ** Examples
> 
> #Read in the ANT data (see ?ANT).
> data(ANT)
> head(ANT)
  subnum     group block trial     cue     flank location direction       rt
1      1 Treatment     1     1    None   Neutral       up      left 398.6773
2      1 Treatment     1     2  Center   Neutral       up      left 389.1822
3      1 Treatment     1     3  Double   Neutral       up      left 333.2186
4      1 Treatment     1     4 Spatial   Neutral       up      left 419.7640
5      1 Treatment     1     5    None Congruent       up      left 446.4754
6      1 Treatment     1     6  Center Congruent       up      left 338.9766
  error
1     0
2     0
3     0
4     0
5     0
6     0
> ezPrecis(ANT)
Data frame dimensions: 5760 rows, 10 columns
             type missing values      min         max
subnum     factor       0     20        1          20
group      factor       0      2  Control   Treatment
block     numeric       0      6        1           6
trial     numeric       0     48        1          48
cue        factor       0      4     None     Spatial
flank      factor       0      3  Neutral Incongruent
location   factor       0      2     down          up
direction  factor       0      2     left       right
rt        numeric       0   5760 179.5972    657.6986
error     numeric       0      2        0           1
> 
> 
> ## Not run: 
> ##D #Run an ANOVA on the mean correct RT data.
> ##D mean_rt_anova = ezANOVA(
> ##D     data = ANT[ANT$error==0,]
> ##D     , dv = .(rt)
> ##D     , wid = .(subnum)
> ##D     , within = .(cue,flank)
> ##D     , between = .(group)
> ##D )
> ##D 
> ##D #Show the ANOVA and assumption tests.
> ##D print(mean_rt_anova)
> ## End(Not run)
> 
> #Plot the main effect of group.
> group_plot = ezPlot(
+     data = ANT[ANT$error==0,]
+     , dv = .(rt)
+     , wid = .(subnum)
+     , between = .(group)
+     , x = .(group)
+     , do_lines = FALSE
+     , x_lab = 'Group'
+     , y_lab = 'RT (ms)'
+ )
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.
Coefficient covariances computed by hccm()
> 
> #Show the plot.
> print(group_plot)
> 
> #tweak the plot
> # group_plot = group_plot +
> # theme(
> #     panel.grid.major = element_blank()
> #     , panel.grid.minor = element_blank()
> # )
> # print(group_plot)
> 
> 
> 
> #use the "print_code" argument to print the
> # code for creating the plot and return the
> # data to plot. This is useful when you want
> # to learn how to create plots from scratch
> # (which can in turn be useful when you can't
> # get a combination of ezPlot and tweaking to
> # achieve what you want)
> group_plot_data = ezPlot(
+     data = ANT[ANT$error==0,]
+     , dv = .(rt)
+     , wid = .(subnum)
+     , between = .(group)
+     , x = .(group)
+     , do_lines = FALSE
+     , x_lab = 'Group'
+     , y_lab = 'RT (ms)'
+     , print_code = 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.
Coefficient covariances computed by hccm()
ggplot(
	data = stats
	, mapping = aes(
		y = Mean
		, x = group
	)
)+
geom_point()+
geom_errorbar(
	mapping = aes(
		ymin = lo
		, ymax = hi
	)
	, linetype = 1
	, show.legend = FALSE
	, width = 0.25
	, alpha = .5
)+
labs(
	x = 'Group'
	, y = 'RT (ms)'
)> 
> 
> #Re-plot the main effect of group, using the levels
> ##argument to re-arrange/rename levels of group
> group_plot = ezPlot(
+     data = ANT[ANT$error==0,]
+     , dv = .(rt)
+     , wid = .(subnum)
+     , between = .(group)
+     , x = .(group)
+     , do_lines = FALSE
+     , x_lab = 'Group'
+     , y_lab = 'RT (ms)'
+     , levels = list(
+         group = list(
+             new_order = c('Treatment','Control')
+             , new_names = c('Treatment\nGroup','Control\nGroup')
+         )
+     )
+ )
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.
Coefficient covariances computed by hccm()
> 
> #Show the plot.
> print(group_plot)
> 
> 
> #Plot the cue*flank interaction.
> cue_by_flank_plot = ezPlot(
+     data = ANT[ANT$error==0,]
+     , dv = .(rt)
+     , wid = .(subnum)
+     , within = .(cue,flank)
+     , x = .(flank)
+     , split = .(cue)
+     , x_lab = 'Flanker'
+     , y_lab = 'RT (ms)'
+     , split_lab = 'Cue'
+ )
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.
> 
> #Show the plot.
> print(cue_by_flank_plot)
> 
> 
> #Plot the cue*flank interaction by collapsing the cue effect to
> ##the difference between None and Double
> cue_by_flank_plot2 = ezPlot(
+     data = ANT[ ANT$error==0 & (ANT$cue %in% c('None','Double')) ,]
+     , dv = .(rt)
+     , wid = .(subnum)
+     , within = .(flank)
+     , diff = .(cue)
+     , reverse_diff = TRUE
+     , x = .(flank)
+     , x_lab = 'Flanker'
+     , y_lab = 'RT Effect (None - Double, ms)'
+ )
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.
Warning: Collapsing "cue" to a difference score ("None"-"Double") prior to computing statistics.
> 
> #Show the plot.
> print(cue_by_flank_plot2)
> 
> 
> 
> #Plot the group*cue*flank interaction.
> group_by_cue_by_flank_plot = ezPlot(
+     data = ANT[ANT$error==0,]
+     , dv = .(rt)
+     , wid = .(subnum)
+     , within = .(cue,flank)
+     , between = .(group)
+     , x = .(flank)
+     , split = .(cue)
+     , col = .(group)
+     , x_lab = 'Flanker'
+     , y_lab = 'RT (ms)'
+     , split_lab = 'Cue'
+ )
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.
Warning: Mixed within-and-between-Ss effect requested; FLSD is only appropriate for within-Ss comparisons (see warning in ?ezStats or ?ezPlot).
Error:
! The `facets` argument of `facet_grid()` was deprecated in ggplot2
  2.2.0 and is now defunct.
ℹ Please use the `rows` argument instead.
Backtrace:
    ▆
 1. └─ez::ezPlot(...)
 2.   ├─base::eval(parse(text = p))
 3.   │ └─base::eval(parse(text = p))
 4.   └─ggplot2::facet_grid(facets = . ~ group, scales = "free_y")
 5.     └─lifecycle::deprecate_stop("2.2.0", "facet_grid(facets)", "facet_grid(rows)")
 6.       └─lifecycle:::deprecate_stop0(msg)
 7.         └─rlang::cnd_signal(...)
Execution halted
Examples with CPU (user + system) or elapsed time > 5s
          user system elapsed
ezBoot   4.163  0.108   5.747
ezDesign 3.800  0.031   5.055