Running ‘testthat.R’ [41s/55s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > # This file is part of the standard setup for testthat.
  > # It is recommended that you do not modify it.
  > #
  > # Where should you do additional test configuration?
  > # Learn more about the roles of various files in:
  > # * https://r-pkgs.org/testing-design.html#sec-tests-files-overview
  > # * https://testthat.r-lib.org/articles/special-files.html
  > 
  > library(testthat)
  > library(ggdist)     # nolint
  > 
  > test_check("ggdist")
  [ FAIL 14 | WARN 1 | SKIP 127 | PASS 565 ]
  
  ══ Skipped tests (127) ═════════════════════════════════════════════════════════
  • On CRAN (96): 'test.geom_dotsinterval.R:26:3',
    'test.geom_dotsinterval.R:101:3', 'test.geom_dotsinterval.R:120:3',
    'test.geom_dotsinterval.R:154:3', 'test.geom_dotsinterval.R:178:3',
    'test.geom_dotsinterval.R:202:3', 'test.geom_dotsinterval.R:216:3',
    'test.geom_dotsinterval.R:233:3', 'test.geom_dotsinterval.R:265:3',
    'test.geom_dotsinterval.R:308:3', 'test.geom_dotsinterval.R:340:3',
    'test.geom_dotsinterval.R:354:3', 'test.geom_dotsinterval.R:367:3',
    'test.geom_dotsinterval.R:383:3', 'test.geom_dotsinterval.R:397:3',
    'test.geom_dotsinterval.R:410:3', 'test.geom_dotsinterval.R:689:3',
    'test.geom_dotsinterval.R:703:3', 'test.geom_interval.R:22:3',
    'test.geom_interval.R:70:3', 'test.geom_interval.R:92:3',
    'test.geom_lineribbon.R:32:3', 'test.geom_lineribbon.R:51:3',
    'test.geom_lineribbon.R:92:3', 'test.geom_lineribbon.R:118:3',
    'test.geom_lineribbon.R:156:3', 'test.geom_lineribbon.R:172:3',
    'test.geom_lineribbon.R:202:3', 'test.geom_lineribbon.R:221:3',
    'test.geom_lineribbon.R:261:3', 'test.geom_lineribbon.R:284:3',
    'test.geom_pointinterval.R:21:3', 'test.geom_pointinterval.R:61:3',
    'test.geom_pointinterval.R:93:3', 'test.geom_pointinterval.R:123:3',
    'test.geom_pointinterval.R:146:3', 'test.geom_slabinterval.R:56:3',
    'test.geom_slabinterval.R:85:3', 'test.geom_slabinterval.R:109:3',
    'test.geom_slabinterval.R:129:3', 'test.geom_slabinterval.R:236:3',
    'test.geom_slabinterval.R:249:3', 'test.geom_slabinterval.R:280:3',
    'test.geom_slabinterval.R:295:3', 'test.guide_rampbar.R:15:3',
    'test.guide_rampbar.R:34:3', 'test.parse_dist.R:80:3',
    'test.point_interval.R:710:3', 'test.position_dodgejust.R:51:3',
    'test.position_dodgejust.R:69:3', 'test.scale_.R:17:3', 'test.scale_.R:68:3',
    'test.scale_colour_ramp.R:18:3', 'test.scale_colour_ramp.R:45:3',
    'test.scale_colour_ramp.R:89:3', 'test.scale_colour_ramp.R:111:3',
    'test.scale_colour_ramp.R:151:3', 'test.scale_thickness.R:27:3',
    'test.stat_cdfinterval.R:29:3', 'test.stat_dist_slabinterval.R:26:3',
    'test.stat_dist_slabinterval.R:71:3', 'test.stat_dist_slabinterval.R:140:3',
    'test.stat_dist_slabinterval.R:182:3', 'test.stat_dist_slabinterval.R:207:3',
    'test.stat_dist_slabinterval.R:228:3', 'test.stat_dist_slabinterval.R:250:3',
    'test.stat_dist_slabinterval.R:298:3', 'test.stat_dist_slabinterval.R:430:3',
    'test.stat_dist_slabinterval.R:454:3', 'test.stat_dist_slabinterval.R:472:3',
    'test.stat_dist_slabinterval.R:488:3', 'test.stat_dist_slabinterval.R:521:3',
    'test.stat_dist_slabinterval.R:535:3', 'test.stat_dist_slabinterval.R:551:3',
    'test.stat_dist_slabinterval.R:567:3', 'test.stat_dist_slabinterval.R:603:3',
    'test.stat_dist_slabinterval.R:960:3', 'test.stat_dist_slabinterval.R:987:3',
    'test.stat_dist_slabinterval.R:1044:3',
    'test.stat_dist_slabinterval.R:1135:3',
    'test.stat_dist_slabinterval.R:1157:3',
    'test.stat_sample_slabinterval.R:28:3',
    'test.stat_sample_slabinterval.R:52:3',
    'test.stat_sample_slabinterval.R:76:3',
    'test.stat_sample_slabinterval.R:115:3',
    'test.stat_sample_slabinterval.R:191:3',
    'test.stat_sample_slabinterval.R:222:3',
    'test.stat_sample_slabinterval.R:271:3', 'test.stat_spike.R:21:3',
    'test.subguide.R:27:3', 'test.subguide.R:55:3', 'test.subguide.R:131:3',
    'test.subguide.R:177:3', 'test.subguide.R:199:3', 'test.subguide.R:236:3',
    'test.theme_ggdist.R:27:3'
  • density() output changed in R 4.4 (10): 'test.density.R:84:3',
    'test.stat_dist_slabinterval.R:356:3', 'test.stat_dist_slabinterval.R:499:3',
    'test.stat_eye.R:13:3', 'test.stat_eye.R:40:3', 'test.stat_eye.R:74:3',
    'test.stat_sample_slabinterval.R:89:3',
    'test.stat_sample_slabinterval.R:133:3',
    'test.stat_sample_slabinterval.R:164:3',
    'test.stat_sample_slabinterval.R:288:3'
  • posterior cannot be loaded (21): 'test.curve_interval.R:14:3',
    'test.distributions.R:75:3', 'test.distributions.R:99:3',
    'test.distributions.R:109:3', 'test.geom_blur_dots.R:10:3',
    'test.geom_dotsinterval.R:443:3', 'test.geom_dotsinterval.R:485:3',
    'test.geom_dotsinterval.R:554:3', 'test.point_interval.R:448:3',
    'test.point_interval.R:467:3', 'test.point_interval.R:475:3',
    'test.point_interval.R:491:3', 'test.point_interval.R:774:3',
    'test.stat_dist_slabinterval.R:277:3', 'test.stat_dist_slabinterval.R:622:3',
    'test.stat_dist_slabinterval.R:659:3', 'test.stat_dist_slabinterval.R:709:3',
    'test.stat_dist_slabinterval.R:732:3',
    'test.stat_dist_slabinterval.R:1069:3',
    'test.stat_dist_slabinterval.R:1099:3', 'test.stat_mcse_dots.R:8:3'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test.curve_interval.R:100:3'): basic cases on single interval work ──
  <ggdist_missing_package/rlang_error/error/condition>
  Error in `curve_interval(df, .width = 0.95)`: `?curve_interval()` requires the posterior package.
  > Install the posterior package with `install.packages("posterior")`
  Backtrace:
      ▆
   1. ├─testthat::expect_equal(...) at test.curve_interval.R:100:3
   2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. ├─ggdist::curve_interval(df, .width = 0.95)
   5. └─ggdist:::curve_interval.data.frame(df, .width = 0.95)
   6.   └─ggdist:::stop_if_not_installed(c("posterior", "dplyr"), "{.help curve_interval}")
   7.     └─ggdist:::stop_not_installed(...)
   8.       └─cli::cli_abort(...)
   9.         └─rlang::abort(...)
  ── Error ('test.curve_interval.R:134:3'): basic cases on single curve work ─────
  <ggdist_missing_package/rlang_error/error/condition>
  Error in `curve_interval(df, .along = x, .width = c(0.95, 0, 1))`: `?curve_interval()` requires the posterior package.
  > Install the posterior package with `install.packages("posterior")`
  Backtrace:
      ▆
   1. ├─testthat::expect_equal(...) at test.curve_interval.R:134:3
   2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. ├─ggdist::curve_interval(df, .along = x, .width = c(0.95, 0, 1))
   5. └─ggdist:::curve_interval.data.frame(df, .along = x, .width = c(0.95, 0, 1))
   6.   └─ggdist:::stop_if_not_installed(c("posterior", "dplyr"), "{.help curve_interval}")
   7.     └─ggdist:::stop_not_installed(...)
   8.       └─cli::cli_abort(...)
   9.         └─rlang::abort(...)
  ── Error ('test.curve_interval.R:172:3'): basic cases on multiple variables ────
  <ggdist_missing_package/rlang_error/error/condition>
  Error in `curve_interval(df, .along = x, .width = c(0.95, 0, 1))`: `?curve_interval()` requires the posterior package.
  > Install the posterior package with `install.packages("posterior")`
  Backtrace:
      ▆
   1. ├─testthat::expect_equal(...) at test.curve_interval.R:172:3
   2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. ├─ggdist::curve_interval(df, .along = x, .width = c(0.95, 0, 1))
   5. └─ggdist:::curve_interval.data.frame(df, .along = x, .width = c(0.95, 0, 1))
   6.   └─ggdist:::stop_if_not_installed(c("posterior", "dplyr"), "{.help curve_interval}")
   7.     └─ggdist:::stop_not_installed(...)
   8.       └─cli::cli_abort(...)
   9.         └─rlang::abort(...)
  ── Error ('test.curve_interval.R:185:3'): error is thrown when no columns found to summarize ──
  <ggdist_missing_package/rlang_error/error/condition>
  Error in `curve_interval(df, .exclude = "value")`: `?curve_interval()` requires the posterior package.
  > Install the posterior package with `install.packages("posterior")`
  Backtrace:
       ▆
    1. ├─testthat::expect_error(...) at test.curve_interval.R:185:3
    2. │ └─testthat:::expect_condition_matching(...)
    3. │   └─testthat:::quasi_capture(...)
    4. │     ├─testthat (local) .capture(...)
    5. │     │ └─base::withCallingHandlers(...)
    6. │     └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    7. ├─ggdist::curve_interval(df, .exclude = "value")
    8. └─ggdist:::curve_interval.data.frame(df, .exclude = "value")
    9.   └─ggdist:::stop_if_not_installed(c("posterior", "dplyr"), "{.help curve_interval}")
   10.     └─ggdist:::stop_not_installed(...)
   11.       └─cli::cli_abort(...)
   12.         └─rlang::abort(...)
  ── Error ('test.curve_interval.R:191:3'): error is thrown when along does not match a column ──
  <ggdist_missing_package/rlang_error/error/condition>
  Error in `curve_interval(df, .along = x)`: `?curve_interval()` requires the posterior package.
  > Install the posterior package with `install.packages("posterior")`
  Backtrace:
       ▆
    1. ├─testthat::expect_error(curve_interval(df, .along = x), class = "ggdist_invalid_column_selection") at test.curve_interval.R:191:3
    2. │ └─testthat:::expect_condition_matching(...)
    3. │   └─testthat:::quasi_capture(...)
    4. │     ├─testthat (local) .capture(...)
    5. │     │ └─base::withCallingHandlers(...)
    6. │     └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    7. ├─ggdist::curve_interval(df, .along = x)
    8. └─ggdist:::curve_interval.data.frame(df, .along = x)
    9.   └─ggdist:::stop_if_not_installed(c("posterior", "dplyr"), "{.help curve_interval}")
   10.     └─ggdist:::stop_not_installed(...)
   11.       └─cli::cli_abort(...)
   12.         └─rlang::abort(...)
  ── Error ('test.curve_interval.R:200:3'): error is thrown with groups of different sizes ──
  <ggdist_missing_package/rlang_error/error/condition>
  Error in `curve_interval(df, .along = group)`: `?curve_interval()` requires the posterior package.
  > Install the posterior package with `install.packages("posterior")`
  Backtrace:
       ▆
    1. ├─testthat::expect_error(curve_interval(df, .along = group), "Must have the same number of values in each group") at test.curve_interval.R:200:3
    2. │ └─testthat:::expect_condition_matching(...)
    3. │   └─testthat:::quasi_capture(...)
    4. │     ├─testthat (local) .capture(...)
    5. │     │ └─base::withCallingHandlers(...)
    6. │     └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    7. ├─ggdist::curve_interval(df, .along = group)
    8. └─ggdist:::curve_interval.data.frame(df, .along = group)
    9.   └─ggdist:::stop_if_not_installed(c("posterior", "dplyr"), "{.help curve_interval}")
   10.     └─ggdist:::stop_not_installed(...)
   11.       └─cli::cli_abort(...)
   12.         └─rlang::abort(...)
  ── Error ('test.curve_interval.R:204:3'): curve_interval(<rvar>) and curve_interval(<matrix>) do not support along ──
  <ggdist_missing_package/rlang_error/error/condition>
  Error in `curve_interval(matrix(1:4, nrow = 2), .along = "x")`: `?curve_interval()` requires the posterior package.
  > Install the posterior package with `install.packages("posterior")`
  Backtrace:
       ▆
    1. ├─testthat::expect_error(...) at test.curve_interval.R:204:3
    2. │ └─testthat:::expect_condition_matching(...)
    3. │   └─testthat:::quasi_capture(...)
    4. │     ├─testthat (local) .capture(...)
    5. │     │ └─base::withCallingHandlers(...)
    6. │     └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    7. ├─ggdist::curve_interval(matrix(1:4, nrow = 2), .along = "x")
    8. └─ggdist:::curve_interval.matrix(matrix(1:4, nrow = 2), .along = "x")
    9.   └─ggdist:::stop_if_not_installed("posterior", "{.help curve_interval}")
   10.     └─ggdist:::stop_not_installed(...)
   11.       └─cli::cli_abort(...)
   12.         └─rlang::abort(...)
  ── Error ('test.geom_dotsinterval.R:606:3'): dist_categorical works ────────────
  Error in `layer_slabinterval(data = data, mapping = mapping, stat = StatDotsinterval, 
      geom = geom, position = position, show.legend = show.legend, 
      inherit.aes = inherit.aes, params = list(quantiles = quantiles, 
          point_interval = point_interval, .width = .width, orientation = orientation, 
          na.rm = na.rm, ...))`: Problem while computing aesthetics.
  i Error occurred in the 1st layer.
  Caused by error in `loadNamespace()`:
  ! there is no package called 'posterior'
  Backtrace:
       ▆
    1. ├─ggplot2::ggplot_build(...) at test.geom_dotsinterval.R:606:3
    2. ├─ggplot2:::ggplot_build.ggplot(...)
    3. │ └─ggplot2:::by_layer(...)
    4. │   ├─rlang::try_fetch(...)
    5. │   │ ├─base::tryCatch(...)
    6. │   │ │ └─base (local) tryCatchList(expr, classes, parentenv, handlers)
    7. │   │ │   └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
    8. │   │ │     └─base (local) doTryCatch(return(expr), name, parentenv, handler)
    9. │   │ └─base::withCallingHandlers(...)
   10. │   └─ggplot2 (local) f(l = layers[[i]], d = data[[i]])
   11. │     └─l$compute_aesthetics(d, plot)
   12. │       └─ggdist (local) compute_aesthetics(..., self = self)
   13. │         └─scale$train(posterior::draws_of(data[[dist]]))
   14. │           └─ggplot2 (local) train(..., self = self)
   15. │             └─ggplot2:::is.discrete(x)
   16. │               └─base::is.factor(x)
   17. ├─base::loadNamespace(x)
   18. │ ├─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   19. │ │ └─base (local) withOneRestart(expr, restarts[[1L]])
   20. │ │   └─base (local) doWithOneRestart(return(expr), restart)
   21. │ └─base::stop(cond)
   22. └─rlang (local) `<fn>`(`<pckgNtFE>`)
   23.   └─handlers[[1L]](cnd)
   24.     └─cli::cli_abort(...)
   25.       └─rlang::abort(...)
  ── Error ('test.geom_dotsinterval.R:646:3'): dist_categorical works with modified scale limits ──
  Error in `layer_slabinterval(data = data, mapping = mapping, stat = StatDots, 
      geom = geom, position = position, show.legend = show.legend, 
      inherit.aes = inherit.aes, params = list(quantiles = quantiles, 
          orientation = orientation, na.rm = na.rm, ...))`: Problem while computing aesthetics.
  i Error occurred in the 1st layer.
  Caused by error in `loadNamespace()`:
  ! there is no package called 'posterior'
  Backtrace:
       ▆
    1. ├─ggplot2::ggplot_build(...) at test.geom_dotsinterval.R:646:3
    2. ├─ggplot2:::ggplot_build.ggplot(...)
    3. │ └─ggplot2:::by_layer(...)
    4. │   ├─rlang::try_fetch(...)
    5. │   │ ├─base::tryCatch(...)
    6. │   │ │ └─base (local) tryCatchList(expr, classes, parentenv, handlers)
    7. │   │ │   └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
    8. │   │ │     └─base (local) doTryCatch(return(expr), name, parentenv, handler)
    9. │   │ └─base::withCallingHandlers(...)
   10. │   └─ggplot2 (local) f(l = layers[[i]], d = data[[i]])
   11. │     └─l$compute_aesthetics(d, plot)
   12. │       └─ggdist (local) compute_aesthetics(..., self = self)
   13. │         └─scale$train(posterior::draws_of(data[[dist]]))
   14. │           └─ggplot2 (local) train(..., self = self)
   15. │             └─ggplot2:::is.discrete(x)
   16. │               └─base::is.factor(x)
   17. ├─base::loadNamespace(x)
   18. │ ├─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   19. │ │ └─base (local) withOneRestart(expr, restarts[[1L]])
   20. │ │   └─base (local) doWithOneRestart(return(expr), restart)
   21. │ └─base::stop(cond)
   22. └─rlang (local) `<fn>`(`<pckgNtFE>`)
   23.   └─handlers[[1L]](cnd)
   24.     └─cli::cli_abort(...)
   25.       └─rlang::abort(...)
  ── Error ('test.geom_dotsinterval.R:664:3'): dist_categorical works with explicit integer levels ──
  Error in `layer_slabinterval(data = data, mapping = mapping, stat = StatDots, 
      geom = geom, position = position, show.legend = show.legend, 
      inherit.aes = inherit.aes, params = list(quantiles = quantiles, 
          orientation = orientation, na.rm = na.rm, ...))`: Problem while computing aesthetics.
  i Error occurred in the 1st layer.
  Caused by error in `loadNamespace()`:
  ! there is no package called 'posterior'
  Backtrace:
       ▆
    1. ├─ggplot2::ggplot_build(...) at test.geom_dotsinterval.R:664:3
    2. ├─ggplot2:::ggplot_build.ggplot(...)
    3. │ └─ggplot2:::by_layer(...)
    4. │   ├─rlang::try_fetch(...)
    5. │   │ ├─base::tryCatch(...)
    6. │   │ │ └─base (local) tryCatchList(expr, classes, parentenv, handlers)
    7. │   │ │   └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
    8. │   │ │     └─base (local) doTryCatch(return(expr), name, parentenv, handler)
    9. │   │ └─base::withCallingHandlers(...)
   10. │   └─ggplot2 (local) f(l = layers[[i]], d = data[[i]])
   11. │     └─l$compute_aesthetics(d, plot)
   12. │       └─ggdist (local) compute_aesthetics(..., self = self)
   13. │         └─scale$train(posterior::draws_of(data[[dist]]))
   14. │           └─ggplot2 (local) train(..., self = self)
   15. │             └─ggplot2:::is.discrete(x)
   16. │               └─base::is.factor(x)
   17. ├─base::loadNamespace(x)
   18. │ ├─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   19. │ │ └─base (local) withOneRestart(expr, restarts[[1L]])
   20. │ │   └─base (local) doWithOneRestart(return(expr), restart)
   21. │ └─base::stop(cond)
   22. └─rlang (local) `<fn>`(`<pckgNtFE>`)
   23.   └─handlers[[1L]](cnd)
   24.     └─cli::cli_abort(...)
   25.       └─rlang::abort(...)
  ── Error ('test.stat_dist_slabinterval.R:780:3'): dist_categorical works ───────
  Error in `layer_slabinterval(data = data, mapping = mapping, stat = StatSlabinterval, 
      geom = geom, position = position, show.legend = show.legend, 
      inherit.aes = inherit.aes, params = list(p_limits = p_limits, 
          density = density, adjust = adjust, trim = trim, expand = expand, 
          breaks = breaks, align = align, outline_bars = outline_bars, 
          point_interval = point_interval, slab_type = slab_type, 
          limits = limits, n = n, .width = .width, orientation = orientation, 
          na.rm = na.rm, ...))`: Problem while computing aesthetics.
  i Error occurred in the 1st layer.
  Caused by error in `loadNamespace()`:
  ! there is no package called 'posterior'
  Backtrace:
       ▆
    1. ├─ggplot2::ggplot_build(...) at test.stat_dist_slabinterval.R:780:3
    2. ├─ggplot2:::ggplot_build.ggplot(...)
    3. │ └─ggplot2:::by_layer(...)
    4. │   ├─rlang::try_fetch(...)
    5. │   │ ├─base::tryCatch(...)
    6. │   │ │ └─base (local) tryCatchList(expr, classes, parentenv, handlers)
    7. │   │ │   └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
    8. │   │ │     └─base (local) doTryCatch(return(expr), name, parentenv, handler)
    9. │   │ └─base::withCallingHandlers(...)
   10. │   └─ggplot2 (local) f(l = layers[[i]], d = data[[i]])
   11. │     └─l$compute_aesthetics(d, plot)
   12. │       └─ggdist (local) compute_aesthetics(..., self = self)
   13. │         └─scale$train(posterior::draws_of(data[[dist]]))
   14. │           └─ggplot2 (local) train(..., self = self)
   15. │             └─ggplot2:::is.discrete(x)
   16. │               └─base::is.factor(x)
   17. ├─base::loadNamespace(x)
   18. │ ├─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   19. │ │ └─base (local) withOneRestart(expr, restarts[[1L]])
   20. │ │   └─base (local) doWithOneRestart(return(expr), restart)
   21. │ └─base::stop(cond)
   22. └─rlang (local) `<fn>`(`<pckgNtFE>`)
   23.   └─handlers[[1L]](cnd)
   24.     └─cli::cli_abort(...)
   25.       └─rlang::abort(...)
  ── Error ('test.stat_dist_slabinterval.R:823:3'): dist_categorical works with modified scale limits ──
  Error in `layer_slabinterval(data = data, mapping = mapping, stat = StatSlab, 
      geom = geom, position = position, show.legend = show.legend, 
      inherit.aes = inherit.aes, params = list(p_limits = p_limits, 
          density = density, adjust = adjust, trim = trim, expand = expand, 
          breaks = breaks, align = align, outline_bars = outline_bars, 
          slab_type = slab_type, limits = limits, n = n, orientation = orientation, 
          na.rm = na.rm, ...))`: Problem while computing aesthetics.
  i Error occurred in the 1st layer.
  Caused by error in `loadNamespace()`:
  ! there is no package called 'posterior'
  Backtrace:
       ▆
    1. ├─ggplot2::ggplot_build(...) at test.stat_dist_slabinterval.R:823:3
    2. ├─ggplot2:::ggplot_build.ggplot(...)
    3. │ └─ggplot2:::by_layer(...)
    4. │   ├─rlang::try_fetch(...)
    5. │   │ ├─base::tryCatch(...)
    6. │   │ │ └─base (local) tryCatchList(expr, classes, parentenv, handlers)
    7. │   │ │   └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
    8. │   │ │     └─base (local) doTryCatch(return(expr), name, parentenv, handler)
    9. │   │ └─base::withCallingHandlers(...)
   10. │   └─ggplot2 (local) f(l = layers[[i]], d = data[[i]])
   11. │     └─l$compute_aesthetics(d, plot)
   12. │       └─ggdist (local) compute_aesthetics(..., self = self)
   13. │         └─scale$train(posterior::draws_of(data[[dist]]))
   14. │           └─ggplot2 (local) train(..., self = self)
   15. │             └─ggplot2:::is.discrete(x)
   16. │               └─base::is.factor(x)
   17. ├─base::loadNamespace(x)
   18. │ ├─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   19. │ │ └─base (local) withOneRestart(expr, restarts[[1L]])
   20. │ │   └─base (local) doWithOneRestart(return(expr), restart)
   21. │ └─base::stop(cond)
   22. └─rlang (local) `<fn>`(`<pckgNtFE>`)
   23.   └─handlers[[1L]](cnd)
   24.     └─cli::cli_abort(...)
   25.       └─rlang::abort(...)
  ── Error ('test.stat_dist_slabinterval.R:845:3'): dist_categorical works with explicit integer levels ──
  Error in `layer_slabinterval(data = data, mapping = mapping, stat = StatSlab, 
      geom = geom, position = position, show.legend = show.legend, 
      inherit.aes = inherit.aes, params = list(p_limits = p_limits, 
          density = density, adjust = adjust, trim = trim, expand = expand, 
          breaks = breaks, align = align, outline_bars = outline_bars, 
          slab_type = slab_type, limits = limits, n = n, orientation = orientation, 
          na.rm = na.rm, ...))`: Problem while computing aesthetics.
  i Error occurred in the 1st layer.
  Caused by error in `loadNamespace()`:
  ! there is no package called 'posterior'
  Backtrace:
       ▆
    1. ├─ggplot2::ggplot_build(...) at test.stat_dist_slabinterval.R:845:3
    2. ├─ggplot2:::ggplot_build.ggplot(...)
    3. │ └─ggplot2:::by_layer(...)
    4. │   ├─rlang::try_fetch(...)
    5. │   │ ├─base::tryCatch(...)
    6. │   │ │ └─base (local) tryCatchList(expr, classes, parentenv, handlers)
    7. │   │ │   └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
    8. │   │ │     └─base (local) doTryCatch(return(expr), name, parentenv, handler)
    9. │   │ └─base::withCallingHandlers(...)
   10. │   └─ggplot2 (local) f(l = layers[[i]], d = data[[i]])
   11. │     └─l$compute_aesthetics(d, plot)
   12. │       └─ggdist (local) compute_aesthetics(..., self = self)
   13. │         └─scale$train(posterior::draws_of(data[[dist]]))
   14. │           └─ggplot2 (local) train(..., self = self)
   15. │             └─ggplot2:::is.discrete(x)
   16. │               └─base::is.factor(x)
   17. ├─base::loadNamespace(x)
   18. │ ├─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   19. │ │ └─base (local) withOneRestart(expr, restarts[[1L]])
   20. │ │   └─base (local) doWithOneRestart(return(expr), restart)
   21. │ └─base::stop(cond)
   22. └─rlang (local) `<fn>`(`<pckgNtFE>`)
   23.   └─handlers[[1L]](cnd)
   24.     └─cli::cli_abort(...)
   25.       └─rlang::abort(...)
  ── Error ('test.stat_dist_slabinterval.R:865:3'): dist_sample works ────────────
  Error in `layer_slabinterval(data = data, mapping = mapping, stat = StatSlabinterval, 
      geom = geom, position = position, show.legend = show.legend, 
      inherit.aes = inherit.aes, params = list(p_limits = p_limits, 
          density = density, adjust = adjust, trim = trim, expand = expand, 
          breaks = breaks, align = align, outline_bars = outline_bars, 
          point_interval = point_interval, slab_type = slab_type, 
          limits = limits, n = n, .width = .width, orientation = orientation, 
          na.rm = na.rm, ...))`: Problem while computing aesthetics.
  i Error occurred in the 1st layer.
  Caused by error in `loadNamespace()`:
  ! there is no package called 'posterior'
  Backtrace:
       ▆
    1. ├─ggplot2::ggplot_build(...) at test.stat_dist_slabinterval.R:865:3
    2. ├─ggplot2:::ggplot_build.ggplot(...)
    3. │ └─ggplot2:::by_layer(...)
    4. │   ├─rlang::try_fetch(...)
    5. │   │ ├─base::tryCatch(...)
    6. │   │ │ └─base (local) tryCatchList(expr, classes, parentenv, handlers)
    7. │   │ │   └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
    8. │   │ │     └─base (local) doTryCatch(return(expr), name, parentenv, handler)
    9. │   │ └─base::withCallingHandlers(...)
   10. │   └─ggplot2 (local) f(l = layers[[i]], d = data[[i]])
   11. │     └─l$compute_aesthetics(d, plot)
   12. │       └─ggdist (local) compute_aesthetics(..., self = self)
   13. │         └─scale$train(posterior::draws_of(data[[dist]]))
   14. │           └─ggplot2 (local) train(..., self = self)
   15. │             └─ggplot2:::is.discrete(x)
   16. │               └─base::is.factor(x)
   17. ├─base::loadNamespace(x)
   18. │ ├─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   19. │ │ └─base (local) withOneRestart(expr, restarts[[1L]])
   20. │ │   └─base (local) doWithOneRestart(return(expr), restart)
   21. │ └─base::stop(cond)
   22. └─rlang (local) `<fn>`(`<pckgNtFE>`)
   23.   └─handlers[[1L]](cnd)
   24.     └─cli::cli_abort(...)
   25.       └─rlang::abort(...)
  
  [ FAIL 14 | WARN 1 | SKIP 127 | PASS 565 ]
  Deleting unused snapshots:
  • test.curve_interval/conditional-curve-interval-with-mhd.svg
  • test.curve_interval/curve-interval-with-bd-mbd.svg
  • test.curve_interval/curve-interval-with-mhd.svg
  • test.density/adapt-n-better-matches-mode.svg
  • test.density/adaptive-kde-red-better-matches-mode.svg
  • test.geom_blur_dots/blur-types-work-correctly.svg
  • test.geom_dotsinterval/bin-dot-order-kept.svg
  • test.geom_dotsinterval/hex.svg
  • test.geom_dotsinterval/min-binwidth.svg
  • test.geom_dotsinterval/one-character-bin.svg
  • test.geom_dotsinterval/removed-na-on-y-axis.svg
  • test.geom_dotsinterval/stat-dist-dots-with-na-rm-true.svg
  • test.geom_dotsinterval/stat-dotsh-with-a-group-with-1-dot.svg
  • test.geom_dotsinterval/stat-dotsh-with-a-group-with-2-dots.svg
  • test.geom_dotsinterval/swarm-dot-order.svg
  • test.geom_dotsinterval/swarm-vertical.svg
  • test.geom_dotsinterval/swarm.svg
  • test.geom_dotsinterval/three-character-bins.svg
  • test.geom_dotsinterval/three-integer-bins.svg
  • test.geom_dotsinterval/transformed-scale-sample-data-quantiles.svg
  • test.geom_dotsinterval/transformed-scale-with-sample-data-on-x.svg
  • test.geom_dotsinterval/vanilla-geom-dotsh.svg
  • test.geom_dotsinterval/vanilla-geom-dotsinterval.svg
  • test.geom_dotsinterval/vanilla-stat-dist-dotsinterval.svg
  • test.geom_dotsinterval/vanilla-stat-dist-dotsintervalh.svg
  • test.geom_dotsinterval/vanilla-stat-dotsinterval.svg
  • test.geom_dotsinterval/vanilla-stat-dotsintervalh.svg
  • test.geom_dotsinterval/varying-scale-side-just.svg
  • test.geom_dotsinterval/varying-side-and-just.svg
  • test.geom_dotsinterval/weave-dot-order.svg
  • test.geom_interval/grouped-intervals-h-reverse-order.svg
  • test.geom_interval/grouped-intervals-h-stat-mode-hdi.svg
  • test.geom_interval/grouped-intervals-h-stat-reverse-order.svg
  • test.geom_interval/grouped-intervals-h-stat.svg
  • test.geom_interval/grouped-intervals-stat.svg
  • test.geom_interval/multimodal-intervals-stat-dodged.svg
  • test.geom_lineribbon/draw-group-by-group.svg
  • test.geom_lineribbon/geom-lineribbon-without-line-vertical.svg
  • test.geom_lineribbon/lineribbon-color-na.svg
  • test.geom_lineribbon/lineribbon-fill-na.svg
  • test.geom_lineribbon/lineribbon-with-step-hv-works.svg
  • test.geom_lineribbon/lineribbon-with-step-mid-works.svg
  • test.geom_lineribbon/lineribbon-with-step-vh-works.svg
  • test.geom_lineribbon/one-group-geom-lineribbon-horizontal.svg
  • test.geom_lineribbon/one-group-geom-lineribbon-manual-aes.svg
  • test.geom_lineribbon/one-group-geom-lineribbon-reverse-order.svg
  • test.geom_lineribbon/one-group-stat-lineribbon-horizontal.svg
  • test.geom_lineribbon/one-group-stat-reverse-order-mean-qi.svg
  • test.geom_lineribbon/two-group-stat-dist-lineribbon.svg
  • test.geom_lineribbon/two-group-stats-grouped-by-color-and-linetype.svg
  • test.geom_lineribbon/two-group-stats-grouped-by-color-and-linewidth.svg
  • test.geom_lineribbon/two-group-stats-grouped-by-fill-with-ramp.svg
  • test.geom_pointinterval/geom-pointinterval-na-rm-true.svg
  • test.geom_pointinterval/grouped-pointintervals-h-reverse-order.svg
  • test.geom_pointinterval/grouped-pointintervals-h-stat-reverse-order.svg
  • test.geom_pointinterval/grouped-pointintervals-h-stat.svg
  • test.geom_pointinterval/grouped-pointintervals-stat.svg
  • test.geom_pointinterval/grouped-with-interval-size-and-legend.svg
  • test.geom_pointinterval/horizontal-orientation-detection-dodge.svg
  • test.geom_pointinterval/horizontal-orientation-detection.svg
  • test.geom_pointinterval/vertical-orientation-detection-plus-dodge.svg
  • test.geom_slabinterval/geom-slabh-one-group.svg
  • test.geom_slabinterval/halfeye-with-normalize-groups.svg
  • test.geom_slabinterval/halfeye-with-normalize-none.svg
  • test.geom_slabinterval/halfeye-with-normalize-panels.svg
  • test.geom_slabinterval/halfeye-with-normalize-xy.svg
  • test.geom_slabinterval/side-both-with-nas-in-thickness.svg
  • test.geom_slabinterval/varying-side-and-just.svg
  • test.guide_rampbar/color-ramp-with-to.svg
  • test.guide_rampbar/fill-ramp-with-to.svg
  • test.point_interval/flattened-indices-with-stat-pointinterval.svg
  • test.position_dodgejust/both-halfeye-w-point-and-rect.svg
  • test.position_dodgejust/left-halfeye-w-point-and-rect.svg
  • test.scale_/dots-slab-color-plus-slab-shape-mapping.svg
  • test.scale_/interval-alpha-continuous-mapping.svg
  • test.scale_/interval-alpha-discrete-mapping.svg
  • test.scale_/interval-color-continuous-mapping.svg
  • test.scale_/interval-color-discrete-mapping.svg
  • test.scale_/interval-linetype-discrete-mapping.svg
  • test.scale_/interval-size-continuous-mapping.svg
  • test.scale_/interval-size-discrete-mapping.svg
  • test.scale_/point-alpha-continuous-mapping.svg
  • test.scale_/point-alpha-discrete-mapping.svg
  • test.scale_/point-color-continuous-mapping.svg
  • test.scale_/point-fill-continuous-mapping.svg
  • test.scale_/point-fill-discrete-mapping.svg
  • test.scale_/point-size-continuous-mapping.svg
  • test.scale_/point-size-discrete-mapping.svg
  • test.scale_/slab-alpha-continuous-mapping.svg
  • test.scale_/slab-alpha-discrete-mapping.svg
  • test.scale_/slab-color-continuous-mapping.svg
  • test.scale_/slab-color-discrete-mapping.svg
  • test.scale_/slab-fill-continuous-mapping.svg
  • test.scale_/slab-fill-discrete-mapping.svg
  • test.scale_/slab-linetype-discrete-mapping.svg
  • test.scale_/slab-linetype-plus-slab-color-mapping.svg
  • test.scale_/slab-linewidth-continuous-mapping.svg
  • test.scale_/slab-linewidth-discrete-mapping.svg
  • test.scale_/slab-size-continuous-mapping.svg
  • test.scale_/slab-size-discrete-mapping.svg
  • test.scale_colour_ramp/basic-color-ramp.svg
  • test.scale_colour_ramp/basic-discrete-color-ramp.svg
  • test.scale_colour_ramp/basic-discrete-colour-ramp.svg
  • test.scale_colour_ramp/basic-discrete-fill-ramp.svg
  • test.scale_colour_ramp/basic-fill-ramp-from-red.svg
  • test.scale_thickness/basic-scale-thickness-shared.svg
  • test.stat_dist_slabinterval/beta-eye-with-logit-scale.svg
  • test.stat_dist_slabinterval/ccdfinterval-reverse-scale-transform.svg
  • test.stat_dist_slabinterval/ccdfinterval-using-args.svg
  • test.stat_dist_slabinterval/ccdfintervalh-using-args.svg
  • test.stat_dist_slabinterval/cdfinterval-using-args.svg
  • test.stat_dist_slabinterval/cdfintervalh-using-args.svg
  • test.stat_dist_slabinterval/constant-dist-on-ccdf-log-scale.svg
  • test.stat_dist_slabinterval/constant-dist-on-ccdf-sample-data.svg
  • test.stat_dist_slabinterval/constant-dist-on-ccdf.svg
  • test.stat_dist_slabinterval/constant-dist-on-halfeye-expanded.svg
  • test.stat_dist_slabinterval/constant-dist-on-halfeye-log-scale.svg
  • test.stat_dist_slabinterval/constant-dist-on-halfeye-sample-data.svg
  • test.stat_dist_slabinterval/dist-ccdfintervalh-log-scale-transform.svg
  • test.stat_dist_slabinterval/dist-gradientintervalh-with-two-groups.svg
  • test.stat_dist_slabinterval/dist-halfeyeh-log-scale-mode-hdi.svg
  • test.stat_dist_slabinterval/dist-halfeyeh-log-scale-sym-diff.svg
  • test.stat_dist_slabinterval/dist-halfeyeh-reverse-scale-transform.svg
  • test.stat_dist_slabinterval/dist-interval-with-two-groups.svg
  • test.stat_dist_slabinterval/dist-intervalh-with-two-groups.svg
  • test.stat_dist_slabinterval/dist-objects-in-stat-dist-ccdfinterval.svg
  • test.stat_dist_slabinterval/dist-pointintervalh-with-two-groups.svg
  • test.stat_dist_slabinterval/dist-poisson-ccdf.svg
  • test.stat_dist_slabinterval/dist-sample.svg
  • test.stat_dist_slabinterval/dist-slab-with-two-groups.svg
  • test.stat_dist_slabinterval/dist-slabh-with-two-groups.svg
  • test.stat_dist_slabinterval/dpois-ccdf.svg
  • test.stat_dist_slabinterval/dpois.svg
  • test.stat_dist_slabinterval/fill-type-gradient-with-two-groups-h.svg
  • test.stat_dist_slabinterval/halfeye-with-rvar-and-cdf.svg
  • test.stat_dist_slabinterval/horizontal-eye-using-args.svg
  • test.stat_dist_slabinterval/horizontal-half-eye-using-args.svg
  • test.stat_dist_slabinterval/mixture-dist-with-mean-qi.svg
  • test.stat_dist_slabinterval/mixture-dist-with-mode-hdi.svg
  • test.stat_dist_slabinterval/mixture-dist-with-null-point-interval.svg
  • test.stat_dist_slabinterval/na-dists-in-stat-dist-dotsinterval.svg
  • test.stat_dist_slabinterval/stat-dist-with-main-axis-of-x.svg
  • test.stat_dist_slabinterval/stat-dist-with-main-axis-of-y.svg
  • test.stat_dist_slabinterval/transformed-scale-with-dist-sample.svg
  • test.stat_dist_slabinterval/transformed-scale-with-dist-wrap-lnorm.svg
  • test.stat_dist_slabinterval/transformed-scale-with-sample-data-on-x.svg
  • test.stat_dist_slabinterval/vertical-eye-using-args.svg
  • test.stat_dist_slabinterval/vertical-half-eye-using-args.svg
  • test.stat_dist_slabinterval/xdist.svg
  • test.stat_eye/halfeye-dodge-3-groups-just-0-both-scale-4-rev-y.svg
  • test.stat_eye/one-parameter-horizontal-eye.svg
  • test.stat_eye/one-parameter-horizontal-half-eye.svg
  • test.stat_eye/one-parameter-vertical-eye.svg
  • test.stat_eye/one-parameter-vertical-halfeye.svg
  • test.stat_eye/two-parameter-factor-horizontal-eye-fill.svg
  • test.stat_eye/two-parameter-factor-vertical-eye-fill.svg
  • test.stat_eye/two-parameter-numeric-horizontal-half-eye-fill.svg
  • test.stat_eye/two-parameter-numeric-vertical-eye.svg
  • test.stat_eye/vert-dodge-3-groups-just-0-5-top-scale-0-5.svg
  • test.stat_eye/vert-dodge-3-groups-just-1-top-scale-0-5.svg
  • test.stat_eye/vert-halfeye-dodge-3-groups-just-0-both-scale-1-5.svg
  • test.stat_eye/vert-halfeye-dodge-3-groups-just-0-bottom-scale-1-5.svg
  • test.stat_eye/vert-halfeye-dodge-3-groups-just-0-top-scale-1-5.svg
  • test.stat_eye/vertical-eye-with-dodging-3-groups-just-0.svg
  • test.stat_eye/vertical-eye-with-dodging-3-groups-left.svg
  • test.stat_eye/vertical-halfeye-with-dodging-3-groups-left.svg
  • test.stat_eye/vertical-halfeye-with-dodging-3-groups-right.svg
  • test.stat_sample_slabinterval/cdfintervalh-log-scale-transform.svg
  • test.stat_sample_slabinterval/constant-dist-on-ccdf-with-n-1.svg
  • test.stat_sample_slabinterval/constant-dist-on-ccdf.svg
  • test.stat_sample_slabinterval/constant-dist-on-halfeye-with-n-1.svg
  • test.stat_sample_slabinterval/constant-dist-on-histinterval.svg
  • test.stat_sample_slabinterval/fill-type-auto-with-two-groups-h.svg
  • test.stat_sample_slabinterval/gradientintervalh-with-two-groups.svg
  • test.stat_sample_slabinterval/halfeyeh-log-scale-tri-no-trim.svg
  • test.stat_sample_slabinterval/halfeyeh-log-scale-tri.svg
  • test.stat_sample_slabinterval/histinterval-with-outlines-bw-bars.svg
  • test.stat_sample_slabinterval/histintervalh-log-scale-transform.svg
  • test.stat_sample_slabinterval/histintervalh-with-outline.svg
  • test.stat_sample_slabinterval/nas-with-na-rm-true.svg
  • test.stat_sample_slabinterval/pdf-and-cdf-on-a-sample-slabinterval.svg
  • test.stat_sample_slabinterval/slab-with-outline.svg
  • test.stat_sample_slabinterval/untrimmed-and-expanded.svg
  • test.subguide/dots-subguide-with-side-vertical.svg
  • test.subguide/integer-subguide-with-zero-range.svg
  • test.subguide/slab-subguide-with-inside-labels-vertical.svg
  • test.subguide/slab-subguide-with-outside-labels-vert.svg
  • test.subguide/slab-subguide-with-outside-labels.svg
  • test.subguide/slab-subguide-with-side-vertical.svg
  • test.theme_ggdist/facet-titles-on-left.svg
  Error: Test failures
  Execution halted