Running ‘testthat.R’ [201s/288s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(bayesplot)
  This is bayesplot version 1.9.0
  - 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")
  [ FAIL 8 | WARN 21 | SKIP 49 | PASS 982 ]
  
  ══ Skipped tests ═══════════════════════════════════════════════════════════════
  • On CRAN (49)
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Failure ('test-bayesplot_grid.R:31'): bayesplot_grid works ──────────────────
  `... <- NULL` produced unexpected messages.
  Expected match: Adding another scale for 'y'
  Actual values:
  * Scale for y is already present.
  Adding another scale for y, which will replace the existing scale.
  ── Failure ('test-convenience-functions.R:8'): abline_01 returns the correct object ──
  abline_01(color = "green", linetype = 2) not equal to geom_abline(...).
  Component "constructor": target, current do not match when deparsed
  ── Failure ('test-convenience-functions.R:15'): vline_* and hline_* return correct objects ──
  vline_0(color = "red") not equal to geom_vline(xintercept = 0, color = "red", na.rm = TRUE).
  Component "constructor": target, current do not match when deparsed
  ── Failure ('test-convenience-functions.R:20'): 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 "constructor": target, current do not match when deparsed
  ── Failure ('test-convenience-functions.R:25'): vline_* and hline_* return correct objects ──
  vline_at(c(3, 4), na.rm = FALSE) not equal to geom_vline(xintercept = c(3, 4)).
  Component "constructor": target, current do not match when deparsed
  ── Failure ('test-convenience-functions.R:30'): vline_* and hline_* return correct objects ──
  hline_at(c(3, 4), na.rm = FALSE) not equal to geom_hline(yintercept = c(3, 4)).
  Component "constructor": target, current do not match when deparsed
  ── Failure ('test-convenience-functions.R:38'): vline_at with 'fun' works ──────
  vline_at(x, colMeans) not equal to geom_vline(xintercept = colMeans(x), na.rm = TRUE).
  Component "constructor": target, current do not match when deparsed
  ── Failure ('test-convenience-functions.R:185'): overlay_function returns the correct object ──
  overlay_function(fun = "dnorm") not equal to stat_function(fun = "dnorm", inherit.aes = FALSE).
  Component "constructor": target, current do not match when deparsed
  
  [ FAIL 8 | WARN 21 | SKIP 49 | PASS 982 ]
  Error: Test failures
  Execution halted