Running ‘testthat.R’ [102s/143s]
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")
  ── Skip (test-aesthetics.R:210:3): color_scheme_view renders correctly ─────────
  Reason: On CRAN
  
  ── FAILURE (test-convenience-functions.R:8:3): abline_01 returns the correct obj
  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 corre
  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 corre
  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 corre
  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 corre
  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 co
  overlay_function(fun = "dnorm") not equal to stat_function(fun = "dnorm", inherit.aes = FALSE).
  Component "super": Component "...": target is not list-like
  
  ── Skip (test-mcmc-diagnostics.R:106:3): mcmc_rhat renders correctly ───────────
  Reason: On CRAN
  
  ── Skip (test-mcmc-diagnostics.R:118:3): mcmc_rhat_hist renders correctly ──────
  Reason: On CRAN
  
  ── Skip (test-mcmc-diagnostics.R:131:3): mcmc_neff renders correctly ───────────
  Reason: On CRAN
  
  ── Skip (test-mcmc-diagnostics.R:140:3): mcmc_neff_hist renders correctly ──────
  Reason: On CRAN
  
  ── Skip (test-mcmc-distributions.R:110:3): mcmc_hist renders correctly ─────────
  Reason: On CRAN
  
  ── Skip (test-mcmc-intervals.R:179:3): mcmc_intervals renders correctly ────────
  Reason: On CRAN
  
  ── Skip (test-mcmc-intervals.R:202:3): mcmc_areas renders correctly ────────────
  Reason: On CRAN
  
  ── Skip (test-mcmc-intervals.R:231:3): mcmc_areas_ridges renders correctly ─────
  Reason: On CRAN
  
  ── Skip (test-mcmc-traces.R:100:3): mcmc_trace renders correctly ───────────────
  Reason: On CRAN
  
  ── Skip (test-mcmc-traces.R:121:3): mcmc_rank_overlay renders correctly ────────
  Reason: On CRAN
  
  ── Skip (test-mcmc-traces.R:149:3): mcmc_rank_hist renders correctly ───────────
  Reason: On CRAN
  
  ── Skip (test-mcmc-traces.R:180:3): mcmc_trace_highlight renders correctly ─────
  Reason: On CRAN
  
  ── Skip (test-mcmc-traces.R:207:3): mcmc_trace with 'np' renders correctly ─────
  Reason: On CRAN
  
  ── 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
  ...
  
  ── Skip (test-ppc-discrete.R:73:3): ppc_bars renders correctly ─────────────────
  Reason: On CRAN
  
  ── Skip (test-ppc-discrete.R:105:3): ppc_bars_grouped renders correctly ────────
  Reason: On CRAN
  
  ── Skip (test-ppc-discrete.R:125:3): ppc_rootogram renders correctly ───────────
  Reason: On CRAN
  
  ── Skip (test-ppc-distributions.R:63:3): ppc_hist renders correctly ────────────
  Reason: On CRAN
  
  ── Skip (test-ppc-distributions.R:73:3): ppc_freqpoly renders correctly ────────
  Reason: On CRAN
  
  ── Skip (test-ppc-distributions.R:91:3): ppc_freqpoly_grouped renders correctly 
  Reason: On CRAN
  
  ── Skip (test-ppc-distributions.R:98:3): ppc_boxplot renders correctly ─────────
  Reason: On CRAN
  
  ── Skip (test-ppc-distributions.R:111:3): ppc_ecdf_overlay renders correctly ───
  Reason: On CRAN
  
  ── Skip (test-ppc-distributions.R:126:3): ppc_dens renders correctly ───────────
  Reason: On CRAN
  
  ── Skip (test-ppc-distributions.R:133:3): ppc_dens_overlay renders correctly ───
  Reason: On CRAN
  
  ── Skip (test-ppc-distributions.R:143:3): ppc_violin_grouped renders correctly ─
  Reason: On CRAN
  
  ── FAILURE (test-ppc-errors.R:31:3): ppc_error_scatter_avg same as ppc_error_sca
  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_sca
  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
  
  ── Skip (test-ppc-errors.R:65:3): ppc_error_binned renders correctly ───────────
  Reason: On CRAN
  
  ── Skip (test-ppc-intervals.R:89:3): ppc_intervals renders correctly ───────────
  Reason: On CRAN
  
  ── Skip (test-ppc-intervals.R:102:3): ppc_intervals_grouped renders correctly ──
  Reason: On CRAN
  
  ── Skip (test-ppc-intervals.R:116:3): ppc_ribbon renders correctly ─────────────
  Reason: On CRAN
  
  ── FAILURE (test-ppc-scatterplots.R:18:3): ppc_scatter_avg same as ppc_scatter i
  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 i
  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
  ...
  
  ── Skip (test-ppc-scatterplots.R:38:3): ppc_scatter renders correctly ──────────
  Reason: On CRAN
  
  ── Skip (test-ppc-scatterplots.R:56:3): ppc_scatter_avg renders correctly ──────
  Reason: On CRAN
  
  ── Skip (test-ppc-scatterplots.R:74:3): ppc_scatter_avg_grouped renders correctl
  Reason: On CRAN
  
  ── Skip (test-ppc-test-statistics.R:64:3): ppc_stat renders correctly ──────────
  Reason: On CRAN
  
  ── Skip (test-ppc-test-statistics.R:83:3): ppc_stat_2d renders correctly ───────
  Reason: On CRAN
  
  ── Skip (test-ppc-test-statistics.R:102:3): ppc_stat_grouped renders correctly ─
  Reason: On CRAN
  
  ── Skip (test-ppc-test-statistics.R:122:3): ppc_stat_freqpoly_grouped renders co
  Reason: On CRAN
  
  ── Skipped tests  ──────────────────────────────────────────────────────────────
  ● On CRAN (36)
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  FAILURE (test-convenience-functions.R:8:3): abline_01 returns the correct object
  FAILURE (test-convenience-functions.R:14:3): vline_* and hline_* return correct objects
  FAILURE (test-convenience-functions.R:18:3): vline_* and hline_* return correct objects
  FAILURE (test-convenience-functions.R:22:3): vline_* and hline_* return correct objects
  FAILURE (test-convenience-functions.R:26:3): vline_* and hline_* return correct objects
  FAILURE (test-convenience-functions.R:33:3): vline_at with 'fun' works
  FAILURE (test-convenience-functions.R:177:3): overlay_function returns the correct object
  FAILURE (test-pp_check.R:9:3): default pp_check method works
  FAILURE (test-pp_check.R:13:3): default pp_check method works
  FAILURE (test-ppc-errors.R:31:3): ppc_error_scatter_avg same as ppc_error_scatter if nrow(yrep) = 1
  FAILURE (test-ppc-errors.R:33:3): ppc_error_scatter_avg same as ppc_error_scatter if nrow(yrep) = 1
  FAILURE (test-ppc-scatterplots.R:18:3): ppc_scatter_avg same as ppc_scatter if nrow(yrep) = 1
  FAILURE (test-ppc-scatterplots.R:20:3): ppc_scatter_avg same as ppc_scatter if nrow(yrep) = 1
  
  [ FAIL 13 | WARN 0 | SKIP 36 | PASS 1009 ]
  Error: Test failures
  Execution halted