Running ‘testthat.R’ [95s/103s]
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
  
  ── ERROR (test-extractors.R:2:1): (code run outside of `test_that()`) ──────────
  Error: there is no package called 'rstanarm'
  Backtrace:
      █
   1. ├─base::suppressPackageStartupMessages(library(rstanarm)) test-extractors.R:2:0
   2. │ └─base::withCallingHandlers(expr, packageStartupMessage = function(c) tryInvokeRestart("muffleMessage"))
   3. └─base::library(rstanarm)
  
  ── ERROR (test-helpers-mcmc.R:244:3): prepare_mcmc_array processes non-array inp
  Error: there is no package called 'rstanarm'
  Backtrace:
      █
   1. ├─base::suppressPackageStartupMessages(library(rstanarm)) test-helpers-mcmc.R:244:2
   2. │ └─base::withCallingHandlers(expr, packageStartupMessage = function(c) tryInvokeRestart("muffleMessage"))
   3. └─base::library(rstanarm)
  
  ── 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
  
  ── ERROR (test-mcmc-nuts.R:2:1): (code run outside of `test_that()`) ───────────
  Error: there is no package called 'rstanarm'
  Backtrace:
      █
   1. ├─base::suppressPackageStartupMessages(library(rstanarm)) test-mcmc-nuts.R:2:0
   2. │ └─base::withCallingHandlers(expr, packageStartupMessage = function(c) tryInvokeRestart("muffleMessage"))
   3. └─base::library(rstanarm)
  
  ── ERROR (test-mcmc-recover.R:2:1): (code run outside of `test_that()`) ────────
  Error: there is no package called 'rstanarm'
  Backtrace:
      █
   1. ├─base::suppressPackageStartupMessages(library(rstanarm)) test-mcmc-recover.R:2:0
   2. │ └─base::withCallingHandlers(expr, packageStartupMessage = function(c) tryInvokeRestart("muffleMessage"))
   3. └─base::library(rstanarm)
  
  ── ERROR (test-mcmc-scatter-and-parcoord.R:2:1): (code run outside of `test_that
  Error: there is no package called 'rstanarm'
  Backtrace:
      █
   1. ├─base::suppressPackageStartupMessages(library(rstanarm)) test-mcmc-scatter-and-parcoord.R:2:0
   2. │ └─base::withCallingHandlers(expr, packageStartupMessage = function(c) tryInvokeRestart("muffleMessage"))
   3. └─base::library(rstanarm)
  
  ── Skip (test-mcmc-traces.R:53:3): mcmc_trace 'np' argument works ──────────────
  Reason: rstanarm cannot be loaded
  
  ── 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
  
  ── ERROR (test-ppc-discrete.R:2:1): (code run outside of `test_that()`) ────────
  Error: there is no package called 'rstanarm'
  Backtrace:
      █
   1. ├─base::suppressPackageStartupMessages(library(rstanarm)) test-ppc-discrete.R:2:0
   2. │ └─base::withCallingHandlers(expr, packageStartupMessage = function(c) tryInvokeRestart("muffleMessage"))
   3. └─base::library(rstanarm)
  
  ── 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
  
  ── 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
  
  ── ERROR (test-ppc-loo.R:2:1): (code run outside of `test_that()`) ─────────────
  Error: there is no package called 'rstanarm'
  Backtrace:
      █
   1. ├─base::suppressPackageStartupMessages(library(rstanarm)) test-ppc-loo.R:2:0
   2. │ └─base::withCallingHandlers(expr, packageStartupMessage = function(c) tryInvokeRestart("muffleMessage"))
   3. └─base::library(rstanarm)
  
  ── 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 (33)
  ● rstanarm cannot be loaded (1)
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  ERROR (test-extractors.R:2:1): (code run outside of `test_that()`)
  ERROR (test-helpers-mcmc.R:244:3): prepare_mcmc_array processes non-array input types correctly
  ERROR (test-mcmc-nuts.R:2:1): (code run outside of `test_that()`)
  ERROR (test-mcmc-recover.R:2:1): (code run outside of `test_that()`)
  ERROR (test-mcmc-scatter-and-parcoord.R:2:1): (code run outside of `test_that()`)
  ERROR (test-ppc-discrete.R:2:1): (code run outside of `test_that()`)
  ERROR (test-ppc-loo.R:2:1): (code run outside of `test_that()`)
  
  [ FAIL 7 | WARN 0 | SKIP 34 | PASS 789 ]
  Error: Test failures
  Execution halted