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

> ### Name: stat_conf_ellipse
> ### Title: Plot confidence ellipses.
> ### Aliases: stat_conf_ellipse
> 
> ### ** Examples
> 
> # Load data
> data("mtcars")
> df <- mtcars
> df$cyl <- as.factor(df$cyl)
> 
> # scatter plot with confidence ellipses
> ggscatter(df, x = "wt", y = "mpg", color = "cyl")+
+  stat_conf_ellipse(aes(color = cyl))
New names:
• `x` -> `x...1`
• `y` -> `y...2`
• `x` -> `x...4`
• `y` -> `y...5`
New names:
• `x` -> `x...1`
• `y` -> `y...2`
• `x` -> `x...4`
• `y` -> `y...5`
New names:
• `x` -> `x...1`
• `y` -> `y...2`
• `x` -> `x...4`
• `y` -> `y...5`
Warning: The following aesthetics were dropped during statistical transformation: x, y
ℹ This can happen when ggplot fails to infer the correct grouping structure in
  the data.
ℹ Did you forget to specify a `group` aesthetic or to convert a numerical
  variable into a factor?
Error in `stat_conf_ellipse()`:
! Problem while setting up geom.
ℹ Error occurred in the 2nd layer.
Caused by error in `compute_geom_1()`:
! `geom_path()` requires the following missing aesthetics: x and y
Backtrace:
     ▆
  1. ├─base (local) `<fn>`(x)
  2. └─ggplot2:::print.ggplot(x)
  3.   ├─ggplot2::ggplot_build(x)
  4.   └─ggplot2:::ggplot_build.ggplot(x)
  5.     └─ggplot2:::by_layer(...)
  6.       ├─rlang::try_fetch(...)
  7.       │ ├─base::tryCatch(...)
  8.       │ │ └─base (local) tryCatchList(expr, classes, parentenv, handlers)
  9.       │ │   └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
 10.       │ │     └─base (local) doTryCatch(return(expr), name, parentenv, handler)
 11.       │ └─base::withCallingHandlers(...)
 12.       └─ggplot2 (local) f(l = layers[[i]], d = data[[i]])
 13.         └─l$compute_geom_1(d)
 14.           └─ggplot2 (local) compute_geom_1(..., self = self)
 15.             └─ggplot2:::check_required_aesthetics(...)
 16.               └─cli::cli_abort(message, call = call)
 17.                 └─rlang::abort(...)
Execution halted