Running ‘testthat.R’ [101s/251s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(bayesplot)
  This is bayesplot version 1.7.1
  - 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")
  ── 1. Error: (unknown) (@test-extractors.R#2)  ─────────────────────────────────
  there is no package called 'rstanarm'
  Backtrace:
   1. base::suppressPackageStartupMessages(library(rstanarm))
   3. base::library(rstanarm)
  
  ── 2. Error: prepare_mcmc_array processes non-array input types correctly (@test
  there is no package called 'rstanarm'
  Backtrace:
   1. base::suppressPackageStartupMessages(library(rstanarm))
   3. base::library(rstanarm)
  
  ── 3. Error: (unknown) (@test-mcmc-nuts.R#2)  ──────────────────────────────────
  there is no package called 'rstanarm'
  Backtrace:
   1. base::suppressPackageStartupMessages(library(rstanarm))
   3. base::library(rstanarm)
  
  ── 4. Error: (unknown) (@test-mcmc-recover.R#2)  ───────────────────────────────
  there is no package called 'rstanarm'
  Backtrace:
   1. base::suppressPackageStartupMessages(library(rstanarm))
   3. base::library(rstanarm)
  
  ── 5. Error: (unknown) (@test-mcmc-scatter-and-parcoord.R#2)  ──────────────────
  there is no package called 'rstanarm'
  Backtrace:
   1. base::suppressPackageStartupMessages(library(rstanarm))
   3. base::library(rstanarm)
  
  ── 6. Error: (unknown) (@test-ppc-discrete.R#2)  ───────────────────────────────
  there is no package called 'rstanarm'
  Backtrace:
   1. base::suppressPackageStartupMessages(library(rstanarm))
   3. base::library(rstanarm)
  
  ── 7. Error: (unknown) (@test-ppc-loo.R#2)  ────────────────────────────────────
  there is no package called 'rstanarm'
  Backtrace:
   1. base::suppressPackageStartupMessages(library(rstanarm))
   3. base::library(rstanarm)
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  [ OK: 789 | SKIPPED: 33 | WARNINGS: 0 | FAILED: 7 ]
  1. Error: (unknown) (@test-extractors.R#2) 
  2. Error: prepare_mcmc_array processes non-array input types correctly (@test-helpers-mcmc.R#244) 
  3. Error: (unknown) (@test-mcmc-nuts.R#2) 
  4. Error: (unknown) (@test-mcmc-recover.R#2) 
  5. Error: (unknown) (@test-mcmc-scatter-and-parcoord.R#2) 
  6. Error: (unknown) (@test-ppc-discrete.R#2) 
  7. Error: (unknown) (@test-ppc-loo.R#2) 
  
  Error: testthat unit tests failed
  Execution halted