Running ‘testthat.R’ [99s/141s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(bayesplot)
  This is bayesplot version 1.7.2
  - Online documentation and vignettes at mc-stan.org/bayesplot
  - bayesplot theme set to bayesplot::theme_default()
     * Does _not_ affect other ggplot2 plots
     * See ?bayesplot_theme_set for details on theme setting
  > 
  > Sys.unsetenv("R_TESTS")
  > test_check("bayesplot")
  ══ Skipped tests ═══════════════════════════════════════════════════════════════
  ● On CRAN (36)
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Failure (test-convenience-functions.R:8:3): abline_01 returns the correct object ──
  abline_01(color = "green", linetype = 2) not equal to geom_abline(...).
  Component "super": Component "...": target is not list-like
  ── Failure (test-convenience-functions.R:14:3): vline_* and hline_* return correct objects ──
  vline_0(color = "red") not equal to geom_vline(xintercept = 0, color = "red", na.rm = TRUE).
  Component "super": Component "...": target is not list-like
  ── Failure (test-convenience-functions.R:18:3): vline_* and hline_* return correct objects ──
  hline_0(size = 2, linetype = 3) not equal to geom_hline(yintercept = 0, size = 2, linetype = 3, na.rm = TRUE).
  Component "super": Component "...": target is not list-like
  ── Failure (test-convenience-functions.R:22:3): vline_* and hline_* return correct objects ──
  vline_at(c(3, 4), na.rm = FALSE) not equal to geom_vline(xintercept = c(3, 4)).
  Component "super": Component "...": target is not list-like
  ── Failure (test-convenience-functions.R:26:3): vline_* and hline_* return correct objects ──
  hline_at(c(3, 4), na.rm = FALSE) not equal to geom_hline(yintercept = c(3, 4)).
  Component "super": Component "...": target is not list-like
  ── Failure (test-convenience-functions.R:33:3): vline_at with 'fun' works ──────
  vline_at(x, colMeans) not equal to geom_vline(xintercept = colMeans(x), na.rm = TRUE).
  Component "super": Component "...": target is not list-like
  ── Failure (test-convenience-functions.R:177:3): overlay_function returns the correct object ──
  overlay_function(fun = "dnorm") not equal to stat_function(fun = "dnorm", inherit.aes = FALSE).
  Component "super": Component "...": target is not list-like
  ── Failure (test-pp_check.R:9:3): default pp_check method works ────────────────
  pp_check(y, yrep[1:50, ], ppc_dens_overlay) not equal to ppc_dens_overlay(y, yrep[1:50, ]).
  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 "scales": Component "scales": Component 1: Component 2: Component 5: Component 2: Component 2: Component 5: Component 2: Component 2: Component 5: Component 2: Component 2: Component 5: Component 2: Component 2: Component 5: Component 2: Component 2: Component 5: Component 2: Component 2: Component 5: Component 2: Component 2: Component 5: Component 2: Component 2: Component 5: Component 2: Component 2: Component 5: Component 2: Component 12: Component 1: target is not list-like
  Component "scales": Component "scales": Component 1: Component 2: Component 5: Component 2: Component 2: Component 5: Component 2: Component 2: Component 5: Component 2: Component 2: Component 5: Component 2: Component 2: Component 5: Component 2: Component 2: Component 5: Component 2: Component 2: Component 5: Component 2: Component 2: Component 5: Component 2: Component 2: Component 5: Component 2: Component 2: Component 5: Component 2: Component 16: 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
  ...
  ── Failure (test-pp_check.R:13:3): default pp_check method works ───────────────
  pp_check(y, yrep, fun = "stat_grouped", group = g, stat = "median") not equal to ppc_stat_grouped(y, yrep, group = g, stat = "median").
  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 "scales": Component "scales": Component 1: Component 2: Component 5: Component 2: Component 2: Component 5: Component 2: Component 2: Component 5: Component 2: Component 2: Component 5: Component 2: Component 2: Component 5: Component 2: Component 2: Component 5: Component 2: Component 2: Component 5: Component 2: Component 2: Component 5: Component 2: Component 2: Component 5: Component 2: Component 2: Component 5: Component 2: Component 2: Component 5: Component 2: Component 2: Component 5: Component 2: Component 12: Component 1: target is not list-like
  Component "scales": Component "scales": Component 1: Component 2: Component 5: Component 2: Component 2: Component 5: Component 2: Component 2: Component 5: Component 2: Component 2: Component 5: Component 2: Component 2: Component 5: Component 2: Component 2: Component 5: Component 2: Component 2: Component 5: Component 2: Component 2: Component 5: Component 2: Component 2: Component 5: Component 2: Component 2: Component 5: Component 2: Component 2: Component 5: Component 2: Component 2: Component 5: Component 2: Component 16: Component 1: target is not list-like
  Component "scales": Component "scales": Component 2: Component 2: Component 5: Component 2: Component 2: Component 5: Component 2: Component 2: Component 5: Component 2: Component 2: Component 5: Component 2: Component 2: Component 5: Component 2: Component 2: Component 5: Component 2: Component 2: Component 5: Component 2: Component 2: Component 5: Component 2: Component 2: Component 5: Component 2: Component 2: Component 5: Component 2: Component 2: Component 5: Component 2: Component 12: Component 1: target is not list-like
  Component "scales": Component "scales": Component 2: Component 2: Component 5: Component 2: Component 2: Component 5: Component 2: Component 2: Component 5: Component 2: Component 2: Component 5: Component 2: Component 2: Component 5: Component 2: Component 2: Component 5: Component 2: Component 2: Component 5: Component 2: Component 2: Component 5: Component 2: Component 2: Component 5: Component 2: Component 2: Component 5: Component 2: Component 2: Component 5: Component 2: Component 16: Component 1: target is not list-like
  Component "scales": Component "scales": Component 3: Component 2: Component 5: Component 2: Component 2: Component 5: Component 2: Component 2: Component 5: Component 2: Component 2: Component 5: Component 2: Component 2: Component 5: Component 2: Component 2: Component 5: Component 2: Component 2: Component 5: Component 2: Component 18: 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
  ...
  ── Failure (test-ppc-errors.R:31:3): ppc_error_scatter_avg same as ppc_error_scatter if nrow(yrep) = 1 ──
  ppc_error_scatter_avg(y2, yrep2) not equal to ppc_error_scatter(y2, yrep2).
  Component "layers": Component 1: 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 "coordinates": Component "super": Component "...": target is not list-like
  Component "facet": Component "super": Component "...": target is not list-like
  Component "plot_env": Component "graph": Component "coordinates": Component "super": Component "...": target is not list-like
  Component "plot_env": Component "graph": Component "facet": Component "super": Component "...": target is not list-like
  ── Failure (test-ppc-errors.R:33:3): ppc_error_scatter_avg same as ppc_error_scatter if nrow(yrep) = 1 ──
  ppc_error_scatter_avg(y, yrep[1, , drop = FALSE]) not equal to ppc_error_scatter(y, yrep[1, , drop = FALSE]).
  Component "layers": Component 1: 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 "coordinates": Component "super": Component "...": target is not list-like
  Component "facet": Component "super": Component "...": target is not list-like
  Component "plot_env": Component "graph": Component "coordinates": Component "super": Component "...": target is not list-like
  Component "plot_env": Component "graph": Component "facet": Component "super": Component "...": target is not list-like
  ── Failure (test-ppc-scatterplots.R:18:3): ppc_scatter_avg same as ppc_scatter if nrow(yrep) = 1 ──
  ppc_scatter_avg(y2, yrep2) not equal to ppc_scatter(y2, yrep2).
  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 "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
  Component "coordinates": Component "super": Component "...": target is not list-like
  Component "facet": Component "super": Component "...": target is not list-like
  ...
  ── Failure (test-ppc-scatterplots.R:20:3): ppc_scatter_avg same as ppc_scatter if nrow(yrep) = 1 ──
  ppc_scatter_avg(y, yrep[1, , drop = FALSE]) not equal to ppc_scatter(y, yrep[1, , drop = FALSE]).
  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 "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
  Component "coordinates": Component "super": Component "...": target is not list-like
  Component "facet": Component "super": Component "...": target is not list-like
  ...
  
  [ FAIL 13 | WARN 0 | SKIP 36 | PASS 1009 ]
  Error: Test failures
  Execution halted