Running 'testthat.R' [82s/92s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(bayesplot)
  This is bayesplot version 1.7.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")
  -- 1. Failure: parameter_names works (@test-helpers-mcmc.R#46)  ----------------
  `parameter_names(x[, 1, ])` threw an error with unexpected message.
  Expected match: "No parameter names found"
  Actual message: "is_3d_array(x) is not TRUE"
  Backtrace:
   1. testthat::expect_error(parameter_names(x[, 1, ]), "No parameter names found")
   7. bayesplot:::parameter_names.array(x[, 1, ])
   8. base::stopifnot(is_3d_array(x))
  
  -- 2. Error: prepare_mcmc_array processes non-array input types correctly (@test
  is_3d_array(x) is not TRUE
  Backtrace:
   1. bayesplot:::prepare_mcmc_array(dframe)
   5. bayesplot:::parameter_names.array(x)
   6. base::stopifnot(is_3d_array(x))
  
  -- 3. Error: prepare_mcmc_array tidy parameter selection is same as traditional 
  is_3d_array(x) is not TRUE
  Backtrace:
    1. testthat::expect_identical(...)
    4. bayesplot:::prepare_mcmc_array(mat, pars = pars_tidy_1a)
   12. bayesplot:::parameter_names.array(x)
   13. base::stopifnot(is_3d_array(x))
  
  -- 4. Failure: tidy parameter selection throws correct errors (@test-helpers-mcm
  `mcmc_hist(mat, pars = vars(contains("nonsense")))` threw an error with unexpected message.
  Expected match: "No parameters were found matching those names"
  Actual message: "is_3d_array(x) is not TRUE"
  Backtrace:
    1. testthat::expect_error(...)
    6. bayesplot::mcmc_hist(mat, pars = vars(contains("nonsense")))
    7. bayesplot:::.mcmc_hist(...)
    8. bayesplot:::prepare_mcmc_array(x, pars, regex_pars, transformations)
   16. bayesplot:::parameter_names.array(x)
   17. base::stopifnot(is_3d_array(x))
  
  -- 5. Error: mcmc_combo returns a gtable object (@test-mcmc-combo.R#10)  -------
  is_3d_array(x) is not TRUE
  Backtrace:
    1. bayesplot:::expect_gtable(...)
    5. bayesplot::mcmc_combo(...)
    6. base::lapply(...)
    7. bayesplot:::FUN(X[[i]], ...)
   12. bayesplot:::.mcmc_dens(...)
   13. bayesplot:::prepare_mcmc_array(x, pars, regex_pars, transformations)
   17. bayesplot:::parameter_names.array(x)
   18. base::stopifnot(is_3d_array(x))
  
  -- 6. Failure: mcmc_combo throws error if 1 chain but multiple chains required (
  `mcmc_combo(...)` threw an error with unexpected message.
  Expected match: "requires multiple chains"
  Actual message: "is_3d_array(x) is not TRUE"
  Backtrace:
    1. testthat::expect_error(...)
    6. bayesplot::mcmc_combo(...)
    7. base::lapply(...)
    8. bayesplot:::FUN(X[[i]], ...)
   13. bayesplot:::.mcmc_trace(...)
   14. bayesplot::mcmc_trace_data(...)
   15. bayesplot:::prepare_mcmc_array(x, pars, regex_pars, transformations)
   19. bayesplot:::parameter_names.array(x)
   20. base::stopifnot(is_3d_array(x))
  
  -- 7. Failure: mcmc_combo throws error if 1 chain but multiple chains required (
  `mcmc_combo(...)` threw an error with unexpected message.
  Expected match: "requires multiple chains"
  Actual message: "is_3d_array(x) is not TRUE"
  Backtrace:
    1. testthat::expect_error(...)
    6. bayesplot::mcmc_combo(...)
    7. base::lapply(...)
    8. bayesplot:::FUN(X[[i]], ...)
   13. bayesplot:::.mcmc_dens(...)
   14. bayesplot:::prepare_mcmc_array(x, pars, regex_pars, transformations)
   18. bayesplot:::parameter_names.array(x)
   19. base::stopifnot(is_3d_array(x))
  
  -- 8. Error: mcmc_acf & mcmc_acf_bar return a ggplot object (@test-mcmc-diagnost
  is_3d_array(x) is not TRUE
  Backtrace:
    1. bayesplot:::expect_gg(mcmc_acf(xx))
    5. bayesplot::mcmc_acf(xx)
    6. bayesplot:::.mcmc_acf(...)
    7. bayesplot:::prepare_mcmc_array(x, pars, regex_pars)
   11. bayesplot:::parameter_names.array(x)
   12. base::stopifnot(is_3d_array(x))
  
  -- 9. Error: mcmc_hist returns a ggplot object (@test-mcmc-distributions.R#14)  
  is_3d_array(x) is not TRUE
  Backtrace:
    1. bayesplot:::expect_gg(mcmc_hist(mat))
    5. bayesplot::mcmc_hist(mat)
    6. bayesplot:::.mcmc_hist(...)
    7. bayesplot:::prepare_mcmc_array(x, pars, regex_pars, transformations)
   11. bayesplot:::parameter_names.array(x)
   12. base::stopifnot(is_3d_array(x))
  
  -- 10. Error: mcmc_dens returns a ggplot object (@test-mcmc-distributions.R#26) 
  is_3d_array(x) is not TRUE
  Backtrace:
    1. bayesplot:::expect_gg(mcmc_dens(mat))
    5. bayesplot::mcmc_dens(mat)
    6. bayesplot:::.mcmc_dens(...)
    7. bayesplot:::prepare_mcmc_array(x, pars, regex_pars, transformations)
   11. bayesplot:::parameter_names.array(x)
   12. base::stopifnot(is_3d_array(x))
  
  -- 11. Failure: mcmc_* throws error if 1 chain but multiple chains required (@te
  `mcmc_hist_by_chain(mat)` threw an error with unexpected message.
  Expected match: "requires multiple chains"
  Actual message: "is_3d_array(x) is not TRUE"
  Backtrace:
    1. testthat::expect_error(mcmc_hist_by_chain(mat), "requires multiple chains")
    6. bayesplot::mcmc_hist_by_chain(mat)
    7. bayesplot:::.mcmc_hist(...)
    8. bayesplot:::prepare_mcmc_array(x, pars, regex_pars, transformations)
   12. bayesplot:::parameter_names.array(x)
   13. base::stopifnot(is_3d_array(x))
  
  -- 12. Failure: mcmc_* throws error if 1 chain but multiple chains required (@te
  `mcmc_hist_by_chain(dframe)` threw an error with unexpected message.
  Expected match: "requires multiple chains"
  Actual message: "is_3d_array(x) is not TRUE"
  Backtrace:
    1. testthat::expect_error(mcmc_hist_by_chain(dframe), "requires multiple chains")
    6. bayesplot::mcmc_hist_by_chain(dframe)
    7. bayesplot:::.mcmc_hist(...)
    8. bayesplot:::prepare_mcmc_array(x, pars, regex_pars, transformations)
   12. bayesplot:::parameter_names.array(x)
   13. base::stopifnot(is_3d_array(x))
  
  -- 13. Failure: mcmc_* throws error if 1 chain but multiple chains required (@te
  `mcmc_dens_overlay(mat)` threw an error with unexpected message.
  Expected match: "requires multiple chains"
  Actual message: "is_3d_array(x) is not TRUE"
  Backtrace:
    1. testthat::expect_error(mcmc_dens_overlay(mat), "requires multiple chains")
    6. bayesplot::mcmc_dens_overlay(mat)
    7. bayesplot:::.mcmc_dens(...)
    8. bayesplot:::prepare_mcmc_array(x, pars, regex_pars, transformations)
   12. bayesplot:::parameter_names.array(x)
   13. base::stopifnot(is_3d_array(x))
  
  -- 14. Failure: mcmc_* throws error if 1 chain but multiple chains required (@te
  `mcmc_dens_overlay(dframe)` threw an error with unexpected message.
  Expected match: "requires multiple chains"
  Actual message: "is_3d_array(x) is not TRUE"
  Backtrace:
    1. testthat::expect_error(mcmc_dens_overlay(dframe), "requires multiple chains")
    6. bayesplot::mcmc_dens_overlay(dframe)
    7. bayesplot:::.mcmc_dens(...)
    8. bayesplot:::prepare_mcmc_array(x, pars, regex_pars, transformations)
   12. bayesplot:::parameter_names.array(x)
   13. base::stopifnot(is_3d_array(x))
  
  -- 15. Failure: mcmc_* throws error if 1 chain but multiple chains required (@te
  `mcmc_dens_chains(mat)` threw an error with unexpected message.
  Expected match: "requires multiple chains"
  Actual message: "is_3d_array(x) is not TRUE"
  Backtrace:
    1. testthat::expect_error(mcmc_dens_chains(mat), "requires multiple chains")
    6. bayesplot::mcmc_dens_chains(mat)
    7. bayesplot::mcmc_dens_chains_data(...)
    8. bayesplot:::prepare_mcmc_array(...)
   15. bayesplot:::parameter_names.array(x)
   19. base::stopifnot(is_3d_array(x))
   20. testthat::expect_error(mcmc_dens_chains(mat), "requires multiple chains")
  
  -- 16. Failure: mcmc_* throws error if 1 chain but multiple chains required (@te
  `mcmc_dens_chains(dframe)` threw an error with unexpected message.
  Expected match: "requires multiple chains"
  Actual message: "is_3d_array(x) is not TRUE"
  Backtrace:
    1. testthat::expect_error(mcmc_dens_chains(dframe), "requires multiple chains")
    6. bayesplot::mcmc_dens_chains(dframe)
    7. bayesplot::mcmc_dens_chains_data(...)
    8. bayesplot:::prepare_mcmc_array(...)
   15. bayesplot:::parameter_names.array(x)
   19. base::stopifnot(is_3d_array(x))
   20. testthat::expect_error(mcmc_dens_chains(dframe), "requires multiple chains")
  
  -- 17. Failure: mcmc_* throws error if 1 chain but multiple chains required (@te
  `mcmc_violin(mat)` threw an error with unexpected message.
  Expected match: "requires multiple chains"
  Actual message: "is_3d_array(x) is not TRUE"
  Backtrace:
    1. testthat::expect_error(mcmc_violin(mat), "requires multiple chains")
    6. bayesplot::mcmc_violin(mat)
    7. bayesplot:::.mcmc_dens(...)
    8. bayesplot:::prepare_mcmc_array(x, pars, regex_pars, transformations)
   12. bayesplot:::parameter_names.array(x)
   13. base::stopifnot(is_3d_array(x))
  
  -- 18. Failure: mcmc_* throws error if 1 chain but multiple chains required (@te
  `mcmc_violin(dframe)` threw an error with unexpected message.
  Expected match: "requires multiple chains"
  Actual message: "is_3d_array(x) is not TRUE"
  Backtrace:
    1. testthat::expect_error(mcmc_violin(dframe), "requires multiple chains")
    6. bayesplot::mcmc_violin(dframe)
    7. bayesplot:::.mcmc_dens(...)
    8. bayesplot:::prepare_mcmc_array(x, pars, regex_pars, transformations)
   12. bayesplot:::parameter_names.array(x)
   13. base::stopifnot(is_3d_array(x))
  
  -- 19. Error: mcmc_intervals returns a ggplot object (@test-mcmc-intervals.R#47)
  is_3d_array(x) is not TRUE
  Backtrace:
    1. bayesplot:::expect_gg(mcmc_intervals(mat, regex_pars = "beta"))
    5. bayesplot::mcmc_intervals(mat, regex_pars = "beta")
    6. bayesplot::mcmc_intervals_data(...)
    7. bayesplot:::prepare_mcmc_array(x, pars, regex_pars, transformations)
   11. bayesplot:::parameter_names.array(x)
   12. base::stopifnot(is_3d_array(x))
  
  -- 20. Error: mcmc_areas returns a ggplot object (@test-mcmc-intervals.R#59)  --
  is_3d_array(x) is not TRUE
  Backtrace:
    1. bayesplot:::expect_gg(mcmc_areas(mat))
    5. bayesplot::mcmc_areas(mat)
    6. bayesplot::mcmc_areas_data(...)
    7. bayesplot::mcmc_intervals_data(...)
    8. bayesplot:::prepare_mcmc_array(x, pars, regex_pars, transformations)
   12. bayesplot:::parameter_names.array(x)
   13. base::stopifnot(is_3d_array(x))
  
  -- 21. Error: mcmc_areas_ridges returns a ggplot object (@test-mcmc-intervals.R#
  is_3d_array(x) is not TRUE
  Backtrace:
    1. bayesplot:::expect_gg(mcmc_areas_ridges(mat))
    5. bayesplot::mcmc_areas_ridges(mat)
    6. bayesplot::mcmc_areas_ridges_data(...)
    7. bayesplot::mcmc_areas_data(...)
    8. bayesplot::mcmc_intervals_data(...)
    9. bayesplot:::prepare_mcmc_array(x, pars, regex_pars, transformations)
   13. bayesplot:::parameter_names.array(x)
   14. base::stopifnot(is_3d_array(x))
  
  -- 22. Failure: mcmc_recover_intervals throws correct errors (@test-mcmc-recover
  `mcmc_recover_intervals(draws, letters[1:ncol(draws)])` threw an error with unexpected message.
  Expected match: "is.numeric(true) is not TRUE"
  Actual message: "is_3d_array(x) is not TRUE"
  Backtrace:
    1. testthat::expect_error(...)
    6. bayesplot::mcmc_recover_intervals(draws, letters[1:ncol(draws)])
    8. bayesplot:::prepare_mcmc_array(x)
   12. bayesplot:::parameter_names.array(x)
   13. base::stopifnot(is_3d_array(x))
  
  -- 23. Failure: mcmc_recover_intervals throws correct errors (@test-mcmc-recover
  `mcmc_recover_intervals(draws, true[-1])` threw an error with unexpected message.
  Expected match: "ncol(x) == length(true) is not TRUE"
  Actual message: "is_3d_array(x) is not TRUE"
  Backtrace:
    1. testthat::expect_error(...)
    6. bayesplot::mcmc_recover_intervals(draws, true[-1])
    8. bayesplot:::prepare_mcmc_array(x)
   12. bayesplot:::parameter_names.array(x)
   13. base::stopifnot(is_3d_array(x))
  
  -- 24. Failure: mcmc_recover_intervals throws correct errors (@test-mcmc-recover
  `mcmc_recover_intervals(draws, true, batch = 1:3)` threw an error with unexpected message.
  Expected match: "length(batch) == length(true) is not TRUE"
  Actual message: "is_3d_array(x) is not TRUE"
  Backtrace:
    1. testthat::expect_error(...)
    6. bayesplot::mcmc_recover_intervals(draws, true, batch = 1:3)
    8. bayesplot:::prepare_mcmc_array(x)
   12. bayesplot:::parameter_names.array(x)
   13. base::stopifnot(is_3d_array(x))
  
  -- 25. Failure: mcmc_recover_intervals throws correct errors (@test-mcmc-recover
  `mcmc_recover_intervals(draws, true, prob = 0.8, prob_outer = 0.5)` threw an error with unexpected message.
  Expected match: "prob_outer >= prob is not TRUE"
  Actual message: "is_3d_array(x) is not TRUE"
  Backtrace:
    1. testthat::expect_error(...)
    6. bayesplot::mcmc_recover_intervals(draws, true, prob = 0.8, prob_outer = 0.5)
    8. bayesplot:::prepare_mcmc_array(x)
   12. bayesplot:::parameter_names.array(x)
   13. base::stopifnot(is_3d_array(x))
  
  -- 26. Failure: mcmc_recover_intervals throws correct errors (@test-mcmc-recover
  `mcmc_recover_intervals(draws, true, prob = 0, prob_outer = 0.5)` threw an error with unexpected message.
  Expected match: "prob > 0 is not TRUE"
  Actual message: "is_3d_array(x) is not TRUE"
  Backtrace:
    1. testthat::expect_error(...)
    6. bayesplot::mcmc_recover_intervals(draws, true, prob = 0, prob_outer = 0.5)
    8. bayesplot:::prepare_mcmc_array(x)
   12. bayesplot:::parameter_names.array(x)
   13. base::stopifnot(is_3d_array(x))
  
  -- 27. Failure: mcmc_recover_intervals throws correct errors (@test-mcmc-recover
  `mcmc_recover_intervals(draws, true, prob = 0.5, prob_outer = 1.1)` threw an error with unexpected message.
  Expected match: "prob_outer <= 1 is not TRUE"
  Actual message: "is_3d_array(x) is not TRUE"
  Backtrace:
    1. testthat::expect_error(...)
    6. bayesplot::mcmc_recover_intervals(draws, true, prob = 0.5, prob_outer = 1.1)
    8. bayesplot:::prepare_mcmc_array(x)
   12. bayesplot:::parameter_names.array(x)
   13. base::stopifnot(is_3d_array(x))
  
  -- 28. Error: mcmc_recover_intervals returns a ggplot object (@test-mcmc-recover
  is_3d_array(x) is not TRUE
  Backtrace:
    1. bayesplot:::expect_gg(mcmc_recover_intervals(draws, true))
    5. bayesplot::mcmc_recover_intervals(draws, true)
    7. bayesplot:::prepare_mcmc_array(x)
   11. bayesplot:::parameter_names.array(x)
   12. base::stopifnot(is_3d_array(x))
  
  -- 29. Error: mcmc_recover_intervals works when point_est = 'none' (@test-mcmc-r
  is_3d_array(x) is not TRUE
  Backtrace:
   1. bayesplot::mcmc_recover_intervals(draws, true, batch = 1:4, point_est = "none")
   3. bayesplot:::prepare_mcmc_array(x)
   7. bayesplot:::parameter_names.array(x)
   8. base::stopifnot(is_3d_array(x))
  
  -- 30. Error: mcmc_recover_scatter returns a ggplot object (@test-mcmc-recover.R
  is_3d_array(x) is not TRUE
  Backtrace:
    1. bayesplot:::expect_gg(mcmc_recover_scatter(draws, true))
    5. bayesplot::mcmc_recover_scatter(draws, true)
    7. bayesplot:::prepare_mcmc_array(x)
   11. bayesplot:::parameter_names.array(x)
   12. base::stopifnot(is_3d_array(x))
  
  -- 31. Error: mcmc_recover_hist returns a ggplot object (@test-mcmc-recover.R#10
  is_3d_array(x) is not TRUE
  Backtrace:
    1. bayesplot:::expect_gg(mcmc_recover_hist(draws, true))
    5. bayesplot::mcmc_recover_hist(draws, true)
    7. bayesplot:::prepare_mcmc_array(x)
   11. bayesplot:::parameter_names.array(x)
   12. base::stopifnot(is_3d_array(x))
  
  -- 32. Error: mcmc_scatter returns a ggplot object (@test-mcmc-scatter-and-parco
  is_3d_array(x) is not TRUE
  Backtrace:
    1. bayesplot:::expect_gg(mcmc_scatter(mat, pars = c("sigma", "(Intercept)")))
    5. bayesplot::mcmc_scatter(mat, pars = c("sigma", "(Intercept)"))
    6. bayesplot:::.mcmc_scatter(...)
    7. bayesplot:::prepare_mcmc_array(x, pars, regex_pars, transformations)
   11. bayesplot:::parameter_names.array(x)
   12. base::stopifnot(is_3d_array(x))
  
  -- 33. Failure: mcmc_scatter throws error if number of parameters is not 2 (@tes
  `mcmc_scatter(mat1)` threw an error with unexpected message.
  Expected match: "exactly 2 parameters"
  Actual message: "is_3d_array(x) is not TRUE"
  Backtrace:
    1. testthat::expect_error(mcmc_scatter(mat1), "exactly 2 parameters")
    6. bayesplot::mcmc_scatter(mat1)
    7. bayesplot:::.mcmc_scatter(...)
    8. bayesplot:::prepare_mcmc_array(x, pars, regex_pars, transformations)
   12. bayesplot:::parameter_names.array(x)
   13. base::stopifnot(is_3d_array(x))
  
  -- 34. Failure: mcmc_hex throws error if number of parameters is not 2 (@test-mc
  `mcmc_hex(mat1)` threw an error with unexpected message.
  Expected match: "exactly 2 parameters"
  Actual message: "is_3d_array(x) is not TRUE"
  Backtrace:
    1. testthat::expect_error(mcmc_hex(mat1), "exactly 2 parameters")
    6. bayesplot::mcmc_hex(mat1)
    7. bayesplot:::.mcmc_scatter(...)
    8. bayesplot:::prepare_mcmc_array(x, pars, regex_pars, transformations)
   12. bayesplot:::parameter_names.array(x)
   13. base::stopifnot(is_3d_array(x))
  
  -- 35. Error: mcmc_pairs returns a bayesplot_grid object (@test-mcmc-scatter-and
  is_3d_array(x) is not TRUE
  Backtrace:
    1. bayesplot::mcmc_pairs(arr, pars = c("(Intercept)", "sigma"))
    4. bayesplot:::.mcmc_hist(...)
    5. bayesplot:::prepare_mcmc_array(x, pars, regex_pars, transformations)
    9. bayesplot:::parameter_names.array(x)
   10. base::stopifnot(is_3d_array(x))
  
  -- 36. Error: no mcmc_pairs non-NUTS 'condition's fail (@test-mcmc-scatter-and-p
  is_3d_array(x) is not TRUE
  Backtrace:
    1. bayesplot:::expect_bayesplot_grid(...)
    6. bayesplot::mcmc_pairs(...)
    9. bayesplot:::.mcmc_hist(...)
   10. bayesplot:::prepare_mcmc_array(x, pars, regex_pars, transformations)
   14. bayesplot:::parameter_names.array(x)
   15. base::stopifnot(is_3d_array(x))
  
  -- 37. Error: mcmc_pairs works with NUTS info (@test-mcmc-scatter-and-parcoord.R
  is_3d_array(x) is not TRUE
  Backtrace:
    1. bayesplot:::expect_bayesplot_grid(...)
    6. bayesplot::mcmc_pairs(post, pars = c("wt", "am", "sigma"), np = np)
    9. bayesplot:::.mcmc_hist(...)
   10. bayesplot:::prepare_mcmc_array(x, pars, regex_pars, transformations)
   14. bayesplot:::parameter_names.array(x)
   15. base::stopifnot(is_3d_array(x))
  
  -- 38. Error: mcmc_pairs throws correct warnings and errors (@test-mcmc-scatter-
  is_3d_array(x) is not TRUE
  Backtrace:
    1. testthat::expect_warning(...)
    6. bayesplot::mcmc_pairs(arr1chain, regex_pars = "beta")
    9. bayesplot:::.mcmc_hist(...)
   10. bayesplot:::prepare_mcmc_array(x, pars, regex_pars, transformations)
   14. bayesplot:::parameter_names.array(x)
   15. base::stopifnot(is_3d_array(x))
  
  -- 39. Error: mcmc_trace returns a ggplot object (@test-mcmc-traces.R#9)  ------
  is_3d_array(x) is not TRUE
  Backtrace:
    1. bayesplot:::expect_gg(mcmc_trace(mat))
    5. bayesplot::mcmc_trace(mat)
    6. bayesplot:::.mcmc_trace(...)
    7. bayesplot::mcmc_trace_data(...)
    8. bayesplot:::prepare_mcmc_array(x, pars, regex_pars, transformations)
   12. bayesplot:::parameter_names.array(x)
   13. base::stopifnot(is_3d_array(x))
  
  -- 40. Failure: mcmc_trace_highlight throws error if 1 chain but multiple chains
  `mcmc_trace_highlight(mat)` threw an error with unexpected message.
  Expected match: "requires multiple"
  Actual message: "is_3d_array(x) is not TRUE"
  Backtrace:
    1. testthat::expect_error(mcmc_trace_highlight(mat), "requires multiple")
    6. bayesplot::mcmc_trace_highlight(mat)
    7. bayesplot:::.mcmc_trace(...)
    8. bayesplot::mcmc_trace_data(...)
    9. bayesplot:::prepare_mcmc_array(x, pars, regex_pars, transformations)
   13. bayesplot:::parameter_names.array(x)
   14. base::stopifnot(is_3d_array(x))
  
  -- 41. Failure: mcmc_trace_highlight throws error if 1 chain but multiple chains
  `mcmc_trace_highlight(dframe, highlight = 1)` threw an error with unexpected message.
  Expected match: "requires multiple chains"
  Actual message: "is_3d_array(x) is not TRUE"
  Backtrace:
    1. testthat::expect_error(...)
    6. bayesplot::mcmc_trace_highlight(dframe, highlight = 1)
    7. bayesplot:::.mcmc_trace(...)
    8. bayesplot::mcmc_trace_data(...)
    9. bayesplot:::prepare_mcmc_array(x, pars, regex_pars, transformations)
   13. bayesplot:::parameter_names.array(x)
   14. base::stopifnot(is_3d_array(x))
  
  -- 42. Failure: mcmc_trace 'np' argument works (@test-mcmc-traces.R#82)  -------
  `mcmc_trace(draws[, 1, ], pars = "sigma", np = divs1)` threw an error with unexpected message.
  Expected match: "num_chains(np) == n_chain is not TRUE"
  Actual message: "is_3d_array(x) is not TRUE"
  Backtrace:
    1. testthat::expect_error(...)
    6. bayesplot::mcmc_trace(draws[, 1, ], pars = "sigma", np = divs1)
    7. bayesplot:::.mcmc_trace(...)
    8. bayesplot::mcmc_trace_data(...)
    9. bayesplot:::prepare_mcmc_array(x, pars, regex_pars, transformations)
   13. bayesplot:::parameter_names.array(x)
   14. base::stopifnot(is_3d_array(x))
  
  == testthat results  ===========================================================
  [ OK: 877 | SKIPPED: 25 | WARNINGS: 0 | FAILED: 42 ]
  1. Failure: parameter_names works (@test-helpers-mcmc.R#46) 
  2. Error: prepare_mcmc_array processes non-array input types correctly (@test-helpers-mcmc.R#220) 
  3. Error: prepare_mcmc_array tidy parameter selection is same as traditional selection (@test-helpers-mcmc.R#266) 
  4. Failure: tidy parameter selection throws correct errors (@test-helpers-mcmc.R#284) 
  5. Error: mcmc_combo returns a gtable object (@test-mcmc-combo.R#10) 
  6. Failure: mcmc_combo throws error if 1 chain but multiple chains required (@test-mcmc-combo.R#30) 
  7. Failure: mcmc_combo throws error if 1 chain but multiple chains required (@test-mcmc-combo.R#33) 
  8. Error: mcmc_acf & mcmc_acf_bar return a ggplot object (@test-mcmc-diagnostics.R#90) 
  9. Error: mcmc_hist returns a ggplot object (@test-mcmc-distributions.R#14) 
  1. ...
  
  Error: testthat unit tests failed
  Execution halted