Running ‘testthat.R’ [38s/56s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(bayesplot)
  This is bayesplot version 1.4.0
  - Plotting theme set to bayesplot::theme_default()
  - Online documentation at mc-stan.org/bayesplot
  > 
  > Sys.unsetenv("R_TESTS")
  > test_check("bayesplot")
  ── 1. Error: (unknown) (@test-extractors.R#2)  ─────────────────────────────────
  there is no package called 'rstanarm'
  1: suppressPackageStartupMessages(library(rstanarm)) at testthat/test-extractors.R:2
  2: withCallingHandlers(expr, packageStartupMessage = function(c) invokeRestart("muffleMessage"))
  3: library(rstanarm)
  4: stop(txt, domain = NA)
  
  ── 2. Error: (unknown) (@test-mcmc-nuts.R#2)  ──────────────────────────────────
  there is no package called 'rstanarm'
  1: suppressPackageStartupMessages(library(rstanarm)) at testthat/test-mcmc-nuts.R:2
  2: withCallingHandlers(expr, packageStartupMessage = function(c) invokeRestart("muffleMessage"))
  3: library(rstanarm)
  4: stop(txt, domain = NA)
  
  ── 3. Error: (unknown) (@test-mcmc-recover.R#2)  ───────────────────────────────
  there is no package called 'rstanarm'
  1: suppressPackageStartupMessages(library(rstanarm)) at testthat/test-mcmc-recover.R:2
  2: withCallingHandlers(expr, packageStartupMessage = function(c) invokeRestart("muffleMessage"))
  3: library(rstanarm)
  4: stop(txt, domain = NA)
  
  ── 4. Error: (unknown) (@test-mcmc-scatter-and-parcoord.R#2)  ──────────────────
  there is no package called 'rstanarm'
  1: suppressPackageStartupMessages(library(rstanarm)) at testthat/test-mcmc-scatter-and-parcoord.R:2
  2: withCallingHandlers(expr, packageStartupMessage = function(c) invokeRestart("muffleMessage"))
  3: library(rstanarm)
  4: stop(txt, domain = NA)
  
  ── 5. Error: mcmc_trace 'np' argument works (@test-mcmc-traces.R#46)  ──────────
  there is no package called 'rstanarm'
  1: suppressPackageStartupMessages(library(rstanarm)) at testthat/test-mcmc-traces.R:46
  2: withCallingHandlers(expr, packageStartupMessage = function(c) invokeRestart("muffleMessage"))
  3: library(rstanarm)
  4: stop(txt, domain = NA)
  
  ── 6. Error: (unknown) (@test-ppc-discrete.R#2)  ───────────────────────────────
  there is no package called 'rstanarm'
  1: suppressPackageStartupMessages(library(rstanarm)) at testthat/test-ppc-discrete.R:2
  2: withCallingHandlers(expr, packageStartupMessage = function(c) invokeRestart("muffleMessage"))
  3: library(rstanarm)
  4: stop(txt, domain = NA)
  
  ── 7. Error: (unknown) (@test-ppc-loo.R#2)  ────────────────────────────────────
  there is no package called 'rstanarm'
  1: suppressPackageStartupMessages(library(rstanarm)) at testthat/test-ppc-loo.R:2
  2: withCallingHandlers(expr, packageStartupMessage = function(c) invokeRestart("muffleMessage"))
  3: library(rstanarm)
  4: stop(txt, domain = NA)
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  OK: 673 SKIPPED: 0 FAILED: 7
  1. Error: (unknown) (@test-extractors.R#2) 
  2. Error: (unknown) (@test-mcmc-nuts.R#2) 
  3. Error: (unknown) (@test-mcmc-recover.R#2) 
  4. Error: (unknown) (@test-mcmc-scatter-and-parcoord.R#2) 
  5. Error: mcmc_trace 'np' argument works (@test-mcmc-traces.R#46) 
  6. Error: (unknown) (@test-ppc-discrete.R#2) 
  7. Error: (unknown) (@test-ppc-loo.R#2) 
  
  Error: testthat unit tests failed
  Execution halted