Running ‘testthat.R’ [68s/83s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(bayesplot)
  This is bayesplot version 1.8.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")
  ══ Skipped tests ═══════════════════════════════════════════════════════════════
  • On CRAN (27)
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error (test-helpers-mcmc.R:4:1): (code run outside of `test_that()`) ────────
  Error: data length differs from size of matrix: [1000 != 100 x 5]
  Backtrace:
      █
   1. ├─base::source(test_path("data-for-mcmc-tests.R")) test-helpers-mcmc.R:4:0
   2. │ ├─base::withVisible(eval(ei, envir))
   3. │ └─base::eval(ei, envir)
   4. │   └─base::eval(ei, envir)
   5. ├─base::as.data.frame(matrix(rnorm(1000), nrow = 100, ncol = 5))
   6. └─base::matrix(rnorm(1000), nrow = 100, ncol = 5)
  ── Error (test-mcmc-combo.R:4:1): (code run outside of `test_that()`) ──────────
  Error: data length differs from size of matrix: [1000 != 100 x 5]
  Backtrace:
      █
   1. ├─base::source(test_path("data-for-mcmc-tests.R")) test-mcmc-combo.R:4:0
   2. │ ├─base::withVisible(eval(ei, envir))
   3. │ └─base::eval(ei, envir)
   4. │   └─base::eval(ei, envir)
   5. ├─base::as.data.frame(matrix(rnorm(1000), nrow = 100, ncol = 5))
   6. └─base::matrix(rnorm(1000), nrow = 100, ncol = 5)
  ── Error (test-mcmc-diagnostics.R:4:1): (code run outside of `test_that()`) ────
  Error: data length differs from size of matrix: [1000 != 100 x 5]
  Backtrace:
      █
   1. ├─base::source(test_path("data-for-mcmc-tests.R")) test-mcmc-diagnostics.R:4:0
   2. │ ├─base::withVisible(eval(ei, envir))
   3. │ └─base::eval(ei, envir)
   4. │   └─base::eval(ei, envir)
   5. ├─base::as.data.frame(matrix(rnorm(1000), nrow = 100, ncol = 5))
   6. └─base::matrix(rnorm(1000), nrow = 100, ncol = 5)
  ── Error (test-mcmc-distributions.R:4:1): (code run outside of `test_that()`) ──
  Error: data length differs from size of matrix: [1000 != 100 x 5]
  Backtrace:
      █
   1. ├─base::source(test_path("data-for-mcmc-tests.R")) test-mcmc-distributions.R:4:0
   2. │ ├─base::withVisible(eval(ei, envir))
   3. │ └─base::eval(ei, envir)
   4. │   └─base::eval(ei, envir)
   5. ├─base::as.data.frame(matrix(rnorm(1000), nrow = 100, ncol = 5))
   6. └─base::matrix(rnorm(1000), nrow = 100, ncol = 5)
  ── Error (test-mcmc-intervals.R:4:1): (code run outside of `test_that()`) ──────
  Error: data length differs from size of matrix: [1000 != 100 x 5]
  Backtrace:
      █
   1. ├─base::source(test_path("data-for-mcmc-tests.R")) test-mcmc-intervals.R:4:0
   2. │ ├─base::withVisible(eval(ei, envir))
   3. │ └─base::eval(ei, envir)
   4. │   └─base::eval(ei, envir)
   5. ├─base::as.data.frame(matrix(rnorm(1000), nrow = 100, ncol = 5))
   6. └─base::matrix(rnorm(1000), nrow = 100, ncol = 5)
  ── Error (test-mcmc-scatter-and-parcoord.R:4:1): (code run outside of `test_that()`) ──
  Error: data length differs from size of matrix: [1000 != 100 x 5]
  Backtrace:
      █
   1. ├─base::source(test_path("data-for-mcmc-tests.R")) test-mcmc-scatter-and-parcoord.R:4:0
   2. │ ├─base::withVisible(eval(ei, envir))
   3. │ └─base::eval(ei, envir)
   4. │   └─base::eval(ei, envir)
   5. ├─base::as.data.frame(matrix(rnorm(1000), nrow = 100, ncol = 5))
   6. └─base::matrix(rnorm(1000), nrow = 100, ncol = 5)
  ── Error (test-mcmc-traces.R:4:1): (code run outside of `test_that()`) ─────────
  Error: data length differs from size of matrix: [1000 != 100 x 5]
  Backtrace:
      █
   1. ├─base::source(test_path("data-for-mcmc-tests.R")) test-mcmc-traces.R:4:0
   2. │ ├─base::withVisible(eval(ei, envir))
   3. │ └─base::eval(ei, envir)
   4. │   └─base::eval(ei, envir)
   5. ├─base::as.data.frame(matrix(rnorm(1000), nrow = 100, ncol = 5))
   6. └─base::matrix(rnorm(1000), nrow = 100, ncol = 5)
  
  [ FAIL 7 | WARN 0 | SKIP 27 | PASS 641 ]
  Error: Test failures
  Execution halted