mjskay / tidybayes

Bayesian analysis + tidy data + geoms (R package)
http://mjskay.github.io/tidybayes
GNU General Public License v3.0
712 stars 59 forks source link

tibble getting stricter about recycling #232

Closed romainfrancois closed 4 years ago

romainfrancois commented 4 years ago

This used to work with previous versions of tibble but not anymore:

library(tibble)
df <- tibble(x = 1:21)
df$y <- 1:7
#> Error: Tibble columns must have consistent sizes, only values of size one are recycled:
#> * Size 21: Existing data
#> * Size 7: Column `y`

Created on 2020-03-02 by the reprex package (v0.3.0.9000)

I believe this is what makes this package fail when tested with the dev version of dplyr:

══ Reverse dependency check ═════════════════════════════════════════════════════════════════════════════════════════════════ tidybayes 2.0.1 ══

Status: BROKEN

── Newly failing

x checking examples ... ERROR
x checking tests ...

── Before ──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
0 errors ✓ | 0 warnings ✓ | 0 notes ✓

── After ───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
> checking examples ... ERROR
  Running examples in ‘tidybayes-Ex.R’ failed
  The error most likely occurred in:

  > ### Name: compare_levels
  > ### Title: Compare the value of draws of some variable from a Bayesian
  > ###   model for different levels of a factor
  > ### Aliases: compare_levels
  > ### Keywords: manip
  > 
  > ### ** Examples
  > 
  > 
  > library(dplyr)

  Attaching package: ‘dplyr’

  The following objects are masked from ‘package:stats’:

      filter, lag

  The following objects are masked from ‘package:base’:

      intersect, setdiff, setequal, union

  > library(ggplot2)
  > 
  > data(RankCorr, package = "tidybayes")
  > 
  > # Let's do all pairwise comparisons of b[i,1]:
  > RankCorr %>%
  +   spread_draws(b[i,j]) %>%
  +   filter(j == 1) %>%
  +   compare_levels(b, by = i) %>%
  +   median_qi()
  Warning: `combine()` is deprecated as of dplyr 1.0.0.
  Please use `vctrs::vec_c()` instead.
  This warning is displayed once per session.
  Call `lifecycle::last_warnings()` to see where this warning was generated.
  Error: Tibble columns must have consistent sizes, only values of size one are recycled:

> checking tests ...
  See below...

── Test failures ───────────────────────────────────────────────────────────────────────────────────────────────────────────────── testthat ────

> # This is necessary because some tests fail otherwise; see https://github.com/hadley/testthat/issues/144
> Sys.setenv("R_TESTS" = "")
> 
> library(testthat)
> library(tidybayes)
> 
> test_check("tidybayes")
── 1. Failure: add_draws works on fit from a simple rstanarm model (@test.add_dr
add_draws(mtcars, fits_matrix) not equal to `ref`.
Attributes: < Names: 1 string mismatch >
Attributes: < Length mismatch: comparison on first 2 components >
Attributes: < Component "class": Lengths (4, 3) differ (string compare on first 3) >
Attributes: < Component "class": 3 string mismatches >
Attributes: < Component 2: Modes: list, numeric >
Attributes: < Component 2: names for target but not for current >
Attributes: < Component 2: Attributes: < Modes: list, NULL > >
Attributes: < Component 2: Attributes: < names for target but not for current > >
Attributes: < Component 2: Attributes: < current is not list-like > >
...

── 2. Failure: add_draws works on fit from a simple rstanarm model (@test.add_dr
add_draws(mtcars_tbl, fits_matrix) not equal to `ref`.
Attributes: < Names: 1 string mismatch >
Attributes: < Length mismatch: comparison on first 2 components >
Attributes: < Component "class": Lengths (4, 3) differ (string compare on first 3) >
Attributes: < Component "class": 3 string mismatches >
Attributes: < Component 2: Modes: list, numeric >
Attributes: < Component 2: names for target but not for current >
Attributes: < Component 2: Attributes: < Modes: list, NULL > >
Attributes: < Component 2: Attributes: < names for target but not for current > >
Attributes: < Component 2: Attributes: < current is not list-like > >
...

── 3. Failure: pairwise level comparison works (@test.compare_levels.R#41)  ────
compare_levels(draws, tau, by = ff, comparison = pairwise) not equal to `ref`.
Attributes: < Names: 1 string mismatch >
Attributes: < Length mismatch: comparison on first 2 components >
Attributes: < Component "class": Lengths (4, 3) differ (string compare on first 3) >
Attributes: < Component "class": 3 string mismatches >
Attributes: < Component 2: Modes: list, numeric >
Attributes: < Component 2: names for target but not for current >
Attributes: < Component 2: Attributes: < Modes: list, NULL > >
Attributes: < Component 2: Attributes: < names for target but not for current > >
Attributes: < Component 2: Attributes: < current is not list-like > >
...

── 4. Failure: pairwise level comparison works (@test.compare_levels.R#43)  ────
compare_levels(draws, tau, by = ff, comparison = "pairwise") not equal to `ref`.
Attributes: < Names: 1 string mismatch >
Attributes: < Length mismatch: comparison on first 2 components >
Attributes: < Component "class": Lengths (4, 3) differ (string compare on first 3) >
Attributes: < Component "class": 3 string mismatches >
Attributes: < Component 2: Modes: list, numeric >
Attributes: < Component 2: names for target but not for current >
Attributes: < Component 2: Attributes: < Modes: list, NULL > >
Attributes: < Component 2: Attributes: < names for target but not for current > >
Attributes: < Component 2: Attributes: < current is not list-like > >
...

── 5. Failure: pairwise level comparison works (@test.compare_levels.R#44)  ────
compare_levels(...) not equal to `ref`.
Attributes: < Names: 1 string mismatch >
Attributes: < Length mismatch: comparison on first 2 components >
Attributes: < Component "class": Lengths (4, 3) differ (string compare on first 3) >
Attributes: < Component "class": 3 string mismatches >
Attributes: < Component 2: Modes: list, numeric >
Attributes: < Component 2: names for target but not for current >
Attributes: < Component 2: Attributes: < Modes: list, NULL > >
Attributes: < Component 2: Attributes: < names for target but not for current > >
Attributes: < Component 2: Attributes: < current is not list-like > >
...

── 6. Failure: ordered level comparison works (@test.compare_levels.R#59)  ─────
compare_levels(draws, tau, by = ff, comparison = ordered) not equal to `ref`.
Attributes: < Names: 1 string mismatch >
Attributes: < Length mismatch: comparison on first 2 components >
Attributes: < Component "class": Lengths (4, 3) differ (string compare on first 3) >
Attributes: < Component "class": 3 string mismatches >
Attributes: < Component 2: Modes: list, numeric >
Attributes: < Component 2: names for target but not for current >
Attributes: < Component 2: Attributes: < Modes: list, NULL > >
Attributes: < Component 2: Attributes: < names for target but not for current > >
Attributes: < Component 2: Attributes: < current is not list-like > >
...

── 7. Failure: ordered level comparison works (@test.compare_levels.R#60)  ─────
compare_levels(draws, tau, by = ff, comparison = "ordered") not equal to `ref`.
Attributes: < Names: 1 string mismatch >
Attributes: < Length mismatch: comparison on first 2 components >
Attributes: < Component "class": Lengths (4, 3) differ (string compare on first 3) >
Attributes: < Component "class": 3 string mismatches >
Attributes: < Component 2: Modes: list, numeric >
Attributes: < Component 2: names for target but not for current >
Attributes: < Component 2: Attributes: < Modes: list, NULL > >
Attributes: < Component 2: Attributes: < names for target but not for current > >
Attributes: < Component 2: Attributes: < current is not list-like > >
...

── 8. Failure: control level comparison works (@test.compare_levels.R#75)  ─────
compare_levels(draws, tau, by = ff, comparison = control) not equal to `ref`.
Attributes: < Names: 1 string mismatch >
Attributes: < Length mismatch: comparison on first 2 components >
Attributes: < Component "class": Lengths (4, 3) differ (string compare on first 3) >
Attributes: < Component "class": 3 string mismatches >
Attributes: < Component 2: Modes: list, numeric >
Attributes: < Component 2: names for target but not for current >
Attributes: < Component 2: Attributes: < Modes: list, NULL > >
Attributes: < Component 2: Attributes: < names for target but not for current > >
Attributes: < Component 2: Attributes: < current is not list-like > >
...

── 9. Failure: named functions are supported and named with their own name (@tes
compare_levels(draws, tau, by = ff, fun = `+`, comparison = control) not equal to `ref`.
Attributes: < Names: 1 string mismatch >
Attributes: < Length mismatch: comparison on first 2 components >
Attributes: < Component "class": Lengths (4, 3) differ (string compare on first 3) >
Attributes: < Component "class": 3 string mismatches >
Attributes: < Component 2: Modes: list, numeric >
Attributes: < Component 2: names for target but not for current >
Attributes: < Component 2: Attributes: < Modes: list, NULL > >
Attributes: < Component 2: Attributes: < names for target but not for current > >
Attributes: < Component 2: Attributes: < current is not list-like > >
...

── 10. Failure: anonymous functions are supported and named with `:` (@test.comp
compare_levels(...) not equal to `ref`.
Attributes: < Names: 1 string mismatch >
Attributes: < Length mismatch: comparison on first 2 components >
Attributes: < Component "class": Lengths (4, 3) differ (string compare on first 3) >
Attributes: < Component "class": 3 string mismatches >
Attributes: < Component 2: Modes: list, numeric >
Attributes: < Component 2: names for target but not for current >
Attributes: < Component 2: Attributes: < Modes: list, NULL > >
Attributes: < Component 2: Attributes: < names for target but not for current > >
Attributes: < Component 2: Attributes: < current is not list-like > >
...

── 11. Failure: custom comparisons of lists of character vectors are supported (
compare_levels(...) not equal to `ref`.
Attributes: < Names: 1 string mismatch >
Attributes: < Length mismatch: comparison on first 2 components >
Attributes: < Component "class": Lengths (4, 3) differ (string compare on first 3) >
Attributes: < Component "class": 3 string mismatches >
Attributes: < Component 2: Modes: list, numeric >
Attributes: < Component 2: names for target but not for current >
Attributes: < Component 2: Attributes: < Modes: list, NULL > >
Attributes: < Component 2: Attributes: < names for target but not for current > >
Attributes: < Component 2: Attributes: < current is not list-like > >
...

── 12. Failure: custom comparisons of lists of unevaluated expressions are suppo
compare_levels(...) not equal to `ref`.
Attributes: < Names: 1 string mismatch >
Attributes: < Length mismatch: comparison on first 2 components >
Attributes: < Component "class": Lengths (4, 3) differ (string compare on first 3) >
Attributes: < Component "class": 3 string mismatches >
Attributes: < Component 2: Modes: list, numeric >
Attributes: < Component 2: names for target but not for current >
Attributes: < Component 2: Attributes: < Modes: list, NULL > >
Attributes: < Component 2: Attributes: < names for target but not for current > >
Attributes: < Component 2: Attributes: < current is not list-like > >
...

── 13. Failure: custom comparisons of lists of unevaluated expressions are suppo
compare_levels(...) not equal to `ref`.
Attributes: < Names: 1 string mismatch >
Attributes: < Length mismatch: comparison on first 2 components >
Attributes: < Component "class": Lengths (4, 3) differ (string compare on first 3) >
Attributes: < Component "class": 3 string mismatches >
Attributes: < Component 2: Modes: list, numeric >
Attributes: < Component 2: names for target but not for current >
Attributes: < Component 2: Attributes: < Modes: list, NULL > >
Attributes: < Component 2: Attributes: < names for target but not for current > >
Attributes: < Component 2: Attributes: < current is not list-like > >
...

── 14. Failure: comparisons of subsets of levels of factors are supported (@test
compare_levels(draws, tau, by = ff, comparison = pairwise) not equal to `ref`.
Attributes: < Names: 1 string mismatch >
Attributes: < Length mismatch: comparison on first 2 components >
Attributes: < Component "class": Lengths (4, 3) differ (string compare on first 3) >
Attributes: < Component "class": 3 string mismatches >
Attributes: < Component 2: Modes: list, numeric >
Attributes: < Component 2: names for target but not for current >
Attributes: < Component 2: Attributes: < Modes: list, NULL > >
Attributes: < Component 2: Attributes: < names for target but not for current > >
Attributes: < Component 2: Attributes: < current is not list-like > >
...

── 15. Error: compare_levels respects groups of input data frame (@test.compare_
Tibble columns must have consistent sizes, only values of size one are recycled:
* Size 12000: Existing data
* Size 1000: Column `.chain`
Backtrace:
  8. tidybayes::spread_draws(., b[i, j])
  9. base::lapply(...)
 10. tidybayes:::FUN(X[[i]], ...)
 11. tidybayes:::spread_draws_(...)
 12. tidybayes:::spread_draws_long_(...)
 14. tibble:::`[<-.tbl_df`(...)
 15. tibble:::tbl_subassign(x, i, j, value)
 16. tibble:::tbl_subassign_col(x, j, value)
 17. tibble:::vectbl_recycle_rows(...)

── 16. Failure: [add_]fitted_draws works on a simple rstanarm model (@test.fitte
fitted_draws(m_hp_wt, mtcars_tbl) not equal to `ref`.
Attributes: < Names: 1 string mismatch >
Attributes: < Length mismatch: comparison on first 2 components >
Attributes: < Component "class": Lengths (4, 3) differ (string compare on first 3) >
Attributes: < Component "class": 3 string mismatches >
Attributes: < Component 2: Modes: list, numeric >
Attributes: < Component 2: names for target but not for current >
Attributes: < Component 2: Attributes: < Modes: list, NULL > >
Attributes: < Component 2: Attributes: < names for target but not for current > >
Attributes: < Component 2: Attributes: < current is not list-like > >
...

── 17. Failure: [add_]fitted_draws works on a simple rstanarm model (@test.fitte
add_fitted_draws(mtcars_tbl, m_hp_wt) not equal to `ref`.
Attributes: < Names: 1 string mismatch >
Attributes: < Length mismatch: comparison on first 2 components >
Attributes: < Component "class": Lengths (4, 3) differ (string compare on first 3) >
Attributes: < Component "class": 3 string mismatches >
Attributes: < Component 2: Modes: list, numeric >
Attributes: < Component 2: names for target but not for current >
Attributes: < Component 2: Attributes: < Modes: list, NULL > >
Attributes: < Component 2: Attributes: < names for target but not for current > >
Attributes: < Component 2: Attributes: < current is not list-like > >
...

── 18. Failure: [add_]fitted_draws works on a simple rstanarm model (@test.fitte
add_fitted_draws(mtcars_tbl, m_hp_wt, value = "foo") not equal to rename(ref, foo = .value).
Attributes: < Names: 1 string mismatch >
Attributes: < Length mismatch: comparison on first 2 components >
Attributes: < Component "class": Lengths (4, 3) differ (string compare on first 3) >
Attributes: < Component "class": 3 string mismatches >
Attributes: < Component 2: Modes: list, numeric >
Attributes: < Component 2: names for target but not for current >
Attributes: < Component 2: Attributes: < Modes: list, NULL > >
Attributes: < Component 2: Attributes: < names for target but not for current > >
Attributes: < Component 2: Attributes: < current is not list-like > >
...

── 19. Failure: [add_]fitted_draws works on a simple rstanarm model (@test.fitte
linpred_draws(m_hp_wt, mtcars_tbl) not equal to `ref`.
Attributes: < Names: 1 string mismatch >
Attributes: < Length mismatch: comparison on first 2 components >
Attributes: < Component "class": Lengths (4, 3) differ (string compare on first 3) >
Attributes: < Component "class": 3 string mismatches >
Attributes: < Component 2: Modes: list, numeric >
Attributes: < Component 2: names for target but not for current >
Attributes: < Component 2: Attributes: < Modes: list, NULL > >
Attributes: < Component 2: Attributes: < names for target but not for current > >
Attributes: < Component 2: Attributes: < current is not list-like > >
...

── 20. Failure: [add_]fitted_draws works on a simple rstanarm model (@test.fitte
add_linpred_draws(mtcars_tbl, m_hp_wt) not equal to `ref`.
Attributes: < Names: 1 string mismatch >
Attributes: < Length mismatch: comparison on first 2 components >
Attributes: < Component "class": Lengths (4, 3) differ (string compare on first 3) >
Attributes: < Component "class": 3 string mismatches >
Attributes: < Component 2: Modes: list, numeric >
Attributes: < Component 2: names for target but not for current >
Attributes: < Component 2: Attributes: < Modes: list, NULL > >
Attributes: < Component 2: Attributes: < names for target but not for current > >
Attributes: < Component 2: Attributes: < current is not list-like > >
...

── 21. Failure: [add_]fitted_draws works on a simple rstanarm model (@test.fitte
fitted_draws(m_hp_wt, mtcars_tbl, n = 10, seed = 1234) not equal to `filtered_ref`.
Attributes: < Names: 1 string mismatch >
Attributes: < Length mismatch: comparison on first 2 components >
Attributes: < Component "class": Lengths (4, 3) differ (string compare on first 3) >
Attributes: < Component "class": 3 string mismatches >
Attributes: < Component 2: Modes: list, numeric >
Attributes: < Component 2: names for target but not for current >
Attributes: < Component 2: Attributes: < Modes: list, NULL > >
Attributes: < Component 2: Attributes: < names for target but not for current > >
Attributes: < Component 2: Attributes: < current is not list-like > >
...

── 22. Failure: [add_]fitted_draws works on a simple rstanarm model (@test.fitte
add_fitted_draws(mtcars_tbl, m_hp_wt, n = 10, seed = 1234) not equal to `filtered_ref`.
Attributes: < Names: 1 string mismatch >
Attributes: < Length mismatch: comparison on first 2 components >
Attributes: < Component "class": Lengths (4, 3) differ (string compare on first 3) >
Attributes: < Component "class": 3 string mismatches >
Attributes: < Component 2: Modes: list, numeric >
Attributes: < Component 2: names for target but not for current >
Attributes: < Component 2: Attributes: < Modes: list, NULL > >
Attributes: < Component 2: Attributes: < names for target but not for current > >
Attributes: < Component 2: Attributes: < current is not list-like > >
...

── 23. Failure: [add_]fitted_draws works on an rstanarm model with grouped newda
fitted_draws(m_hp_wt, group_by(mtcars_tbl, hp)) not equal to `ref`.
Attributes: < Names: 1 string mismatch >
Attributes: < Length mismatch: comparison on first 2 components >
Attributes: < Component "class": Lengths (4, 3) differ (string compare on first 3) >
Attributes: < Component "class": 3 string mismatches >
Attributes: < Component 2: Modes: list, numeric >
Attributes: < Component 2: names for target but not for current >
Attributes: < Component 2: Attributes: < Modes: list, NULL > >
Attributes: < Component 2: Attributes: < names for target but not for current > >
Attributes: < Component 2: Attributes: < current is not list-like > >
...

── 24. Failure: [add_]fitted_draws works on an rstanarm model with grouped newda
add_fitted_draws(mtcars_tbl, m_hp_wt) not equal to `ref`.
Attributes: < Names: 1 string mismatch >
Attributes: < Length mismatch: comparison on first 2 components >
Attributes: < Component "class": Lengths (4, 3) differ (string compare on first 3) >
Attributes: < Component "class": 3 string mismatches >
Attributes: < Component 2: Modes: list, numeric >
Attributes: < Component 2: names for target but not for current >
Attributes: < Component 2: Attributes: < Modes: list, NULL > >
Attributes: < Component 2: Attributes: < names for target but not for current > >
Attributes: < Component 2: Attributes: < current is not list-like > >
...

── 25. Failure: [add_]fitted_draws works on brms models without dpar (@test.fitt
fitted_draws(m_hp, mtcars_tbl) not equal to `ref`.
Attributes: < Names: 1 string mismatch >
Attributes: < Length mismatch: comparison on first 2 components >
Attributes: < Component "class": Lengths (4, 3) differ (string compare on first 3) >
Attributes: < Component "class": 3 string mismatches >
Attributes: < Component 2: Modes: list, numeric >
Attributes: < Component 2: names for target but not for current >
Attributes: < Component 2: Attributes: < Modes: list, NULL > >
Attributes: < Component 2: Attributes: < names for target but not for current > >
Attributes: < Component 2: Attributes: < current is not list-like > >
...

── 26. Failure: [add_]fitted_draws works on brms models without dpar (@test.fitt
add_fitted_draws(mtcars_tbl, m_hp) not equal to `ref`.
Attributes: < Names: 1 string mismatch >
Attributes: < Length mismatch: comparison on first 2 components >
Attributes: < Component "class": Lengths (4, 3) differ (string compare on first 3) >
Attributes: < Component "class": 3 string mismatches >
Attributes: < Component 2: Modes: list, numeric >
Attributes: < Component 2: names for target but not for current >
Attributes: < Component 2: Attributes: < Modes: list, NULL > >
Attributes: < Component 2: Attributes: < names for target but not for current > >
Attributes: < Component 2: Attributes: < current is not list-like > >
...

── 27. Failure: [add_]fitted_draws works on brms models without dpar (@test.fitt
add_fitted_draws(mtcars_tbl, m_hp, dpar = FALSE) not equal to `ref`.
Attributes: < Names: 1 string mismatch >
Attributes: < Length mismatch: comparison on first 2 components >
Attributes: < Component "class": Lengths (4, 3) differ (string compare on first 3) >
Attributes: < Component "class": 3 string mismatches >
Attributes: < Component 2: Modes: list, numeric >
Attributes: < Component 2: names for target but not for current >
Attributes: < Component 2: Attributes: < Modes: list, NULL > >
Attributes: < Component 2: Attributes: < names for target but not for current > >
Attributes: < Component 2: Attributes: < current is not list-like > >
...

── 28. Failure: [add_]fitted_draws works on brms models without dpar (@test.fitt
add_fitted_draws(mtcars_tbl, m_hp, dpar = FALSE, value = "foo") not equal to rename(ref, foo = .value).
Attributes: < Names: 1 string mismatch >
Attributes: < Length mismatch: comparison on first 2 components >
Attributes: < Component "class": Lengths (4, 3) differ (string compare on first 3) >
Attributes: < Component "class": 3 string mismatches >
Attributes: < Component 2: Modes: list, numeric >
Attributes: < Component 2: names for target but not for current >
Attributes: < Component 2: Attributes: < Modes: list, NULL > >
Attributes: < Component 2: Attributes: < names for target but not for current > >
Attributes: < Component 2: Attributes: < current is not list-like > >
...

── 29. Failure: [add_]fitted_draws works on brms models without dpar (@test.fitt
add_fitted_draws(mtcars_tbl, m_hp, n = 10, seed = 1234) not equal to `filtered_ref`.
Attributes: < Names: 1 string mismatch >
Attributes: < Length mismatch: comparison on first 2 components >
Attributes: < Component "class": Lengths (4, 3) differ (string compare on first 3) >
Attributes: < Component "class": 3 string mismatches >
Attributes: < Component 2: Modes: list, numeric >
Attributes: < Component 2: names for target but not for current >
Attributes: < Component 2: Attributes: < Modes: list, NULL > >
Attributes: < Component 2: Attributes: < names for target but not for current > >
Attributes: < Component 2: Attributes: < current is not list-like > >
...

── 30. Failure: [add_]fitted_draws works on brms models with dpar (@test.fitted_
fitted_draws(m_hp_sigma, mtcars_tbl, dpar = TRUE) not equal to `ref`.
Attributes: < Names: 1 string mismatch >
Attributes: < Length mismatch: comparison on first 2 components >
Attributes: < Component "class": Lengths (4, 3) differ (string compare on first 3) >
Attributes: < Component "class": 3 string mismatches >
Attributes: < Component 2: Modes: list, numeric >
Attributes: < Component 2: names for target but not for current >
Attributes: < Component 2: Attributes: < Modes: list, NULL > >
Attributes: < Component 2: Attributes: < names for target but not for current > >
Attributes: < Component 2: Attributes: < current is not list-like > >
...

── 31. Failure: [add_]fitted_draws works on brms models with dpar (@test.fitted_
add_fitted_draws(mtcars_tbl, m_hp_sigma, dpar = TRUE) not equal to `ref`.
Attributes: < Names: 1 string mismatch >
Attributes: < Length mismatch: comparison on first 2 components >
Attributes: < Component "class": Lengths (4, 3) differ (string compare on first 3) >
Attributes: < Component "class": 3 string mismatches >
Attributes: < Component 2: Modes: list, numeric >
Attributes: < Component 2: names for target but not for current >
Attributes: < Component 2: Attributes: < Modes: list, NULL > >
Attributes: < Component 2: Attributes: < names for target but not for current > >
Attributes: < Component 2: Attributes: < current is not list-like > >
...

── 32. Failure: [add_]fitted_draws works on brms models with dpar (@test.fitted_
add_fitted_draws(mtcars_tbl, m_hp_sigma, dpar = "sigma") not equal to select(ref, -mu).
Attributes: < Names: 1 string mismatch >
Attributes: < Length mismatch: comparison on first 2 components >
Attributes: < Component "class": Lengths (4, 3) differ (string compare on first 3) >
Attributes: < Component "class": 3 string mismatches >
Attributes: < Component 2: Modes: list, numeric >
Attributes: < Component 2: names for target but not for current >
Attributes: < Component 2: Attributes: < Modes: list, NULL > >
Attributes: < Component 2: Attributes: < names for target but not for current > >
Attributes: < Component 2: Attributes: < current is not list-like > >
...

── 33. Failure: [add_]fitted_draws works on brms models with dpar (@test.fitted_
add_fitted_draws(mtcars_tbl, m_hp_sigma, dpar = "mu") not equal to select(ref, -sigma).
Attributes: < Names: 1 string mismatch >
Attributes: < Length mismatch: comparison on first 2 components >
Attributes: < Component "class": Lengths (4, 3) differ (string compare on first 3) >
Attributes: < Component "class": 3 string mismatches >
Attributes: < Component 2: Modes: list, numeric >
Attributes: < Component 2: names for target but not for current >
Attributes: < Component 2: Attributes: < Modes: list, NULL > >
Attributes: < Component 2: Attributes: < names for target but not for current > >
Attributes: < Component 2: Attributes: < current is not list-like > >
...

── 34. Failure: [add_]fitted_draws works on brms models with dpar (@test.fitted_
add_fitted_draws(mtcars_tbl, m_hp_sigma, dpar = FALSE) not equal to select(ref, -sigma, -mu).
Attributes: < Names: 1 string mismatch >
Attributes: < Length mismatch: comparison on first 2 components >
Attributes: < Component "class": Lengths (4, 3) differ (string compare on first 3) >
Attributes: < Component "class": 3 string mismatches >
Attributes: < Component 2: Modes: list, numeric >
Attributes: < Component 2: names for target but not for current >
Attributes: < Component 2: Attributes: < Modes: list, NULL > >
Attributes: < Component 2: Attributes: < names for target but not for current > >
Attributes: < Component 2: Attributes: < current is not list-like > >
...

── 35. Failure: [add_]fitted_draws works on brms models with dpar (@test.fitted_
add_fitted_draws(mtcars_tbl, m_hp_sigma, dpar = NULL) not equal to select(ref, -sigma, -mu).
Attributes: < Names: 1 string mismatch >
Attributes: < Length mismatch: comparison on first 2 components >
Attributes: < Component "class": Lengths (4, 3) differ (string compare on first 3) >
Attributes: < Component "class": 3 string mismatches >
Attributes: < Component 2: Modes: list, numeric >
Attributes: < Component 2: names for target but not for current >
Attributes: < Component 2: Attributes: < Modes: list, NULL > >
Attributes: < Component 2: Attributes: < names for target but not for current > >
Attributes: < Component 2: Attributes: < current is not list-like > >
...

── 36. Failure: [add_]fitted_draws works on brms models with dpar (@test.fitted_
add_fitted_draws(...) not equal to mutate(ref, s1 = sigma).
Attributes: < Names: 1 string mismatch >
Attributes: < Length mismatch: comparison on first 2 components >
Attributes: < Component "class": Lengths (4, 3) differ (string compare on first 3) >
Attributes: < Component "class": 3 string mismatches >
Attributes: < Component 2: Modes: list, numeric >
Attributes: < Component 2: names for target but not for current >
Attributes: < Component 2: Attributes: < Modes: list, NULL > >
Attributes: < Component 2: Attributes: < names for target but not for current > >
Attributes: < Component 2: Attributes: < current is not list-like > >
...

── 37. Failure: [add_]fitted_draws works on brms models with dpar (@test.fitted_
add_fitted_draws(...) not equal to `filtered_ref`.
Attributes: < Names: 1 string mismatch >
Attributes: < Length mismatch: comparison on first 2 components >
Attributes: < Component "class": Lengths (4, 3) differ (string compare on first 3) >
Attributes: < Component "class": 3 string mismatches >
Attributes: < Component 2: Modes: list, numeric >
Attributes: < Component 2: names for target but not for current >
Attributes: < Component 2: Attributes: < Modes: list, NULL > >
Attributes: < Component 2: Attributes: < names for target but not for current > >
Attributes: < Component 2: Attributes: < current is not list-like > >
...

── 38. Failure: [add_]fitted_draws works on simple brms models with nlpars (@tes
fitted_draws(m_nlpar, df_nlpar) not equal to `ref`.
Attributes: < Names: 2 string mismatches >
Attributes: < Length mismatch: comparison on first 4 components >
Attributes: < Component "class": Lengths (4, 3) differ (string compare on first 3) >
Attributes: < Component "class": 3 string mismatches >
Attributes: < Component 3: Modes: list, numeric >
Attributes: < Component 3: names for target but not for current >
Attributes: < Component 3: Attributes: < Modes: list, NULL > >
Attributes: < Component 3: Attributes: < names for target but not for current > >
Attributes: < Component 3: Attributes: < current is not list-like > >
...

── 39. Failure: [add_]fitted_draws works on simple brms models with nlpars (@tes
add_fitted_draws(df_nlpar, m_nlpar) not equal to `ref`.
Attributes: < Names: 2 string mismatches >
Attributes: < Length mismatch: comparison on first 4 components >
Attributes: < Component "class": Lengths (4, 3) differ (string compare on first 3) >
Attributes: < Component "class": 3 string mismatches >
Attributes: < Component 3: Modes: list, numeric >
Attributes: < Component 3: names for target but not for current >
Attributes: < Component 3: Attributes: < Modes: list, NULL > >
Attributes: < Component 3: Attributes: < names for target but not for current > >
Attributes: < Component 3: Attributes: < current is not list-like > >
...

── 40. Failure: [add_]fitted_draws works on simple brms models with nlpars (@tes
add_fitted_draws(df_nlpar, m_nlpar, dpar = FALSE) not equal to `ref`.
Attributes: < Names: 2 string mismatches >
Attributes: < Length mismatch: comparison on first 4 components >
Attributes: < Component "class": Lengths (4, 3) differ (string compare on first 3) >
Attributes: < Component "class": 3 string mismatches >
Attributes: < Component 3: Modes: list, numeric >
Attributes: < Component 3: names for target but not for current >
Attributes: < Component 3: Attributes: < Modes: list, NULL > >
Attributes: < Component 3: Attributes: < names for target but not for current > >
Attributes: < Component 3: Attributes: < current is not list-like > >
...

── 41. Failure: [add_]fitted_draws works on simple brms models with multiple dpa
fitted_draws(m_dpars, df_dpars, dpar = TRUE) not equal to `ref`.
Attributes: < Names: 2 string mismatches >
Attributes: < Length mismatch: comparison on first 4 components >
Attributes: < Component "class": Lengths (4, 3) differ (string compare on first 3) >
Attributes: < Component "class": 3 string mismatches >
Attributes: < Component 3: Modes: list, numeric >
Attributes: < Component 3: names for target but not for current >
Attributes: < Component 3: Attributes: < Modes: list, NULL > >
Attributes: < Component 3: Attributes: < names for target but not for current > >
Attributes: < Component 3: Attributes: < current is not list-like > >
...

── 42. Failure: [add_]fitted_draws works on simple brms models with multiple dpa
add_fitted_draws(df_dpars, m_dpars, dpar = list("mu1", "mu2")) not equal to `ref`.
Attributes: < Names: 2 string mismatches >
Attributes: < Length mismatch: comparison on first 4 components >
Attributes: < Component "class": Lengths (4, 3) differ (string compare on first 3) >
Attributes: < Component "class": 3 string mismatches >
Attributes: < Component 3: Modes: list, numeric >
Attributes: < Component 3: names for target but not for current >
Attributes: < Component 3: Attributes: < Modes: list, NULL > >
Attributes: < Component 3: Attributes: < names for target but not for current > >
Attributes: < Component 3: Attributes: < current is not list-like > >
...

── 43. Failure: [add_]fitted_draws works on simple brms models with multiple dpa
add_fitted_draws(df_dpars, m_dpars, dpar = FALSE) not equal to select(ref, -mu1, -mu2).
Attributes: < Names: 2 string mismatches >
Attributes: < Length mismatch: comparison on first 4 components >
Attributes: < Component "class": Lengths (4, 3) differ (string compare on first 3) >
Attributes: < Component "class": 3 string mismatches >
Attributes: < Component 3: Modes: list, numeric >
Attributes: < Component 3: names for target but not for current >
Attributes: < Component 3: Attributes: < Modes: list, NULL > >
Attributes: < Component 3: Attributes: < names for target but not for current > >
Attributes: < Component 3: Attributes: < current is not list-like > >
...

── 44. Failure: [add_]fitted_draws works on brms models with ordinal outcomes (r
fitted_draws(m_cyl_mpg, mtcars_tbl) not equal to `ref`.
Names: 5 string mismatches
Attributes: < Names: 1 string mismatch >
Attributes: < Length mismatch: comparison on first 2 components >
Attributes: < Component "class": Lengths (4, 3) differ (string compare on first 3) >
Attributes: < Component "class": 3 string mismatches >
Attributes: < Component 2: Modes: list, numeric >
Attributes: < Component 2: names for target but not for current >
Attributes: < Component 2: Attributes: < Modes: list, NULL > >
Attributes: < Component 2: Attributes: < names for target but not for current > >
...

── 45. Failure: [add_]fitted_draws works on brms models with ordinal outcomes (r
add_fitted_draws(mtcars_tbl, m_cyl_mpg) not equal to `ref`.
Names: 5 string mismatches
Attributes: < Names: 1 string mismatch >
Attributes: < Length mismatch: comparison on first 2 components >
Attributes: < Component "class": Lengths (4, 3) differ (string compare on first 3) >
Attributes: < Component "class": 3 string mismatches >
Attributes: < Component 2: Modes: list, numeric >
Attributes: < Component 2: names for target but not for current >
Attributes: < Component 2: Attributes: < Modes: list, NULL > >
Attributes: < Component 2: Attributes: < names for target but not for current > >
...

── 46. Failure: [add_]fitted_draws works on brms models with ordinal outcomes (r
add_fitted_draws(mtcars_tbl, m_cyl_mpg, category = "foo") not equal to rename(ref, foo = .category).
Names: 5 string mismatches
Attributes: < Names: 1 string mismatch >
Attributes: < Length mismatch: comparison on first 2 components >
Attributes: < Component "class": Lengths (4, 3) differ (string compare on first 3) >
Attributes: < Component "class": 3 string mismatches >
Attributes: < Component 2: Modes: list, numeric >
Attributes: < Component 2: names for target but not for current >
Attributes: < Component 2: Attributes: < Modes: list, NULL > >
Attributes: < Component 2: Attributes: < names for target but not for current > >
...

── 47. Failure: [add_]fitted_draws works on brms models with ordinal outcomes (r
add_fitted_draws(mtcars_tbl, m_cyl_mpg, n = 10, seed = 1234) not equal to `filtered_ref`.
Names: 5 string mismatches
Attributes: < Names: 1 string mismatch >
Attributes: < Length mismatch: comparison on first 2 components >
Attributes: < Component "class": Lengths (4, 3) differ (string compare on first 3) >
Attributes: < Component "class": 3 string mismatches >
Attributes: < Component 2: Modes: list, numeric >
Attributes: < Component 2: names for target but not for current >
Attributes: < Component 2: Attributes: < Modes: list, NULL > >
Attributes: < Component 2: Attributes: < names for target but not for current > >
...

── 48. Failure: [add_]fitted_draws works on brms models with ordinal outcomes (l
fitted_draws(m_cyl_mpg, mtcars_tbl, scale = "linear") not equal to `ref`.
Attributes: < Names: 1 string mismatch >
Attributes: < Length mismatch: comparison on first 2 components >
Attributes: < Component "class": Lengths (4, 3) differ (string compare on first 3) >
Attributes: < Component "class": 3 string mismatches >
Attributes: < Component 2: Modes: list, numeric >
Attributes: < Component 2: names for target but not for current >
Attributes: < Component 2: Attributes: < Modes: list, NULL > >
Attributes: < Component 2: Attributes: < names for target but not for current > >
Attributes: < Component 2: Attributes: < current is not list-like > >
...

── 49. Failure: [add_]fitted_draws works on brms models with ordinal outcomes (l
add_fitted_draws(mtcars_tbl, m_cyl_mpg, scale = "linear") not equal to `ref`.
Attributes: < Names: 1 string mismatch >
Attributes: < Length mismatch: comparison on first 2 components >
Attributes: < Component "class": Lengths (4, 3) differ (string compare on first 3) >
Attributes: < Component "class": 3 string mismatches >
Attributes: < Component 2: Modes: list, numeric >
Attributes: < Component 2: names for target but not for current >
Attributes: < Component 2: Attributes: < Modes: list, NULL > >
Attributes: < Component 2: Attributes: < names for target but not for current > >
Attributes: < Component 2: Attributes: < current is not list-like > >
...

── 50. Failure: [add_]fitted_draws works on brms models with dirichlet outcomes 
fitted_draws(m_dirich, grid) not equal to `ref`.
Names: 5 string mismatches
Attributes: < Names: 1 string mismatch >
Attributes: < Length mismatch: comparison on first 2 components >
Attributes: < Component "class": Lengths (4, 3) differ (string compare on first 3) >
Attributes: < Component "class": 3 string mismatches >
Attributes: < Component 2: Modes: list, numeric >
Attributes: < Component 2: names for target but not for current >
Attributes: < Component 2: Attributes: < Modes: list, NULL > >
Attributes: < Component 2: Attributes: < names for target but not for current > >
...

── 51. Failure: [add_]fitted_draws allows extraction of dpar on brms models with
fitted_draws(m_cyl_mpg, mtcars_tbl, scale = "linear", dpar = TRUE) not equal to `ref`.
Attributes: < Names: 1 string mismatch >
Attributes: < Length mismatch: comparison on first 2 components >
Attributes: < Component "class": Lengths (4, 3) differ (string compare on first 3) >
Attributes: < Component "class": 3 string mismatches >
Attributes: < Component 2: Modes: list, numeric >
Attributes: < Component 2: names for target but not for current >
Attributes: < Component 2: Attributes: < Modes: list, NULL > >
Attributes: < Component 2: Attributes: < names for target but not for current > >
Attributes: < Component 2: Attributes: < current is not list-like > >
...

── 52. Failure: [add_]fitted_draws allows extraction of dpar on brms models with
add_fitted_draws(mtcars_tbl, m_cyl_mpg, scale = "linear", dpar = "mu") not equal to `ref`.
Attributes: < Names: 1 string mismatch >
Attributes: < Length mismatch: comparison on first 2 components >
Attributes: < Component "class": Lengths (4, 3) differ (string compare on first 3) >
Attributes: < Component "class": 3 string mismatches >
Attributes: < Component 2: Modes: list, numeric >
Attributes: < Component 2: names for target but not for current >
Attributes: < Component 2: Attributes: < Modes: list, NULL > >
Attributes: < Component 2: Attributes: < names for target but not for current > >
Attributes: < Component 2: Attributes: < current is not list-like > >
...

── 53. Failure: [add_]fitted_draws allows extraction of dpar on brms models with
fitted_draws(m_cyl_mpg, mtcars_tbl, scale = "response", dpar = TRUE) not equal to `ref`.
Names: 6 string mismatches
Attributes: < Names: 1 string mismatch >
Attributes: < Length mismatch: comparison on first 2 components >
Attributes: < Component "class": Lengths (4, 3) differ (string compare on first 3) >
Attributes: < Component "class": 3 string mismatches >
Attributes: < Component 2: Modes: list, numeric >
Attributes: < Component 2: names for target but not for current >
Attributes: < Component 2: Attributes: < Modes: list, NULL > >
Attributes: < Component 2: Attributes: < names for target but not for current > >
...

── 54. Failure: [add_]fitted_draws allows extraction of dpar on brms models with
add_fitted_draws(mtcars_tbl, m_cyl_mpg, scale = "response", dpar = "mu") not equal to `ref`.
Names: 6 string mismatches
Attributes: < Names: 1 string mismatch >
Attributes: < Length mismatch: comparison on first 2 components >
Attributes: < Component "class": Lengths (4, 3) differ (string compare on first 3) >
Attributes: < Component "class": 3 string mismatches >
Attributes: < Component 2: Modes: list, numeric >
Attributes: < Component 2: names for target but not for current >
Attributes: < Component 2: Attributes: < Modes: list, NULL > >
Attributes: < Component 2: Attributes: < names for target but not for current > >
...

── 55. Error: regular expressions for parameter names work on indexed parameters
Tibble columns must have consistent sizes, only values of size one are recycled:
* Size 3000: Existing data
* Size 1000: Column `.chain`
Backtrace:
  8. tidybayes::spread_draws(., c(tau, u_tau)[i])
  9. base::lapply(...)
 10. tidybayes:::FUN(X[[i]], ...)
 11. tidybayes:::spread_draws_(...)
 12. tidybayes:::spread_draws_long_(...)
 14. tibble:::`[<-.tbl_df`(...)
 15. tibble:::tbl_subassign(x, i, j, value)
 16. tibble:::tbl_subassign_col(x, j, value)
 17. tibble:::vectbl_recycle_rows(...)

── 56. Error: gather_draws works on a combination of 0 and 1-dimensional values 
Tibble columns must have consistent sizes, only values of size one are recycled:
* Size 3000: Existing data
* Size 1000: Column `.chain`
Backtrace:
  8. tidybayes::spread_draws(., tau[i], typical_r)
  9. base::lapply(...)
 10. tidybayes:::FUN(X[[i]], ...)
 11. tidybayes:::spread_draws_(...)
 12. tidybayes:::spread_draws_long_(...)
 14. tibble:::`[<-.tbl_df`(...)
 15. tibble:::tbl_subassign(x, i, j, value)
 16. tibble:::tbl_subassign_col(x, j, value)
 17. tibble:::vectbl_recycle_rows(...)

── 57. Failure: gather_emmeans_draws works on a simple rstanarm model (@test.gat
gather_emmeans_draws(grid) not equal to `ref`.
Attributes: < Names: 1 string mismatch >
Attributes: < Length mismatch: comparison on first 2 components >
Attributes: < Component "class": Lengths (4, 3) differ (string compare on first 3) >
Attributes: < Component "class": 3 string mismatches >
Attributes: < Component 2: Modes: list, numeric >
Attributes: < Component 2: names for target but not for current >
Attributes: < Component 2: Attributes: < Modes: list, NULL > >
Attributes: < Component 2: Attributes: < names for target but not for current > >
Attributes: < Component 2: Attributes: < current is not list-like > >
...

── 58. Failure: gather_emmeans_draws works on a simple rstanarm model (@test.gat
gather_emmeans_draws(grid, value = "v") not equal to ref %>% rename(v = ".value").
Attributes: < Names: 1 string mismatch >
Attributes: < Length mismatch: comparison on first 2 components >
Attributes: < Component "class": Lengths (4, 3) differ (string compare on first 3) >
Attributes: < Component "class": 3 string mismatches >
Attributes: < Component 2: Modes: list, numeric >
Attributes: < Component 2: names for target but not for current >
Attributes: < Component 2: Attributes: < Modes: list, NULL > >
Attributes: < Component 2: Attributes: < names for target but not for current > >
Attributes: < Component 2: Attributes: < current is not list-like > >
...

── 59. Failure: gather_emmeans_draws works on an emm_list (@test.gather_emmeans_
gather_emmeans_draws(grid_list) not equal to `ref`.
Attributes: < Component "groups": Names: 5 string mismatches >
Attributes: < Component "groups": Attributes: < Component "row.names": Numeric: lengths (6, 600) differ > >
Attributes: < Component "groups": Length mismatch: comparison on first 5 components >
Attributes: < Component "groups": Component 1: Modes: numeric, character >
Attributes: < Component "groups": Component 1: Lengths: 6, 600 >
Attributes: < Component "groups": Component 1: target is numeric, current is character >
Attributes: < Component "groups": Component 2: Numeric: lengths (6, 600) differ >
Attributes: < Component "groups": Component 3: Modes: character, numeric >
Attributes: < Component "groups": Component 3: Lengths: 6, 600 >
...

── 60. Failure: gather_emmeans_draws works on an emm_list (@test.gather_emmeans_
gather_emmeans_draws(grid_list, value = "v", grid = "g") not equal to ref %>% rename(g = .grid, v = .value).
Attributes: < Component "groups": Names: 5 string mismatches >
Attributes: < Component "groups": Attributes: < Component "row.names": Numeric: lengths (6, 600) differ > >
Attributes: < Component "groups": Length mismatch: comparison on first 5 components >
Attributes: < Component "groups": Component 1: Modes: numeric, character >
Attributes: < Component "groups": Component 1: Lengths: 6, 600 >
Attributes: < Component "groups": Component 1: target is numeric, current is character >
Attributes: < Component "groups": Component 2: Numeric: lengths (6, 600) differ >
Attributes: < Component "groups": Component 3: Modes: character, numeric >
Attributes: < Component "groups": Component 3: Lengths: 6, 600 >
...

── 61. Error: gather_variables works on the results of spread_draws with multipl
Tibble columns must have consistent sizes, only values of size one are recycled:
* Size 12000: Existing data
* Size 1000: Column `.chain`
Backtrace:
  8. tidybayes::spread_draws(., b[i, v], tau[i])
  9. base::lapply(...)
 10. tidybayes:::FUN(X[[i]], ...)
 11. tidybayes:::spread_draws_(...)
 12. tidybayes:::spread_draws_long_(...)
 14. tibble:::`[<-.tbl_df`(...)
 15. tibble:::tbl_subassign(x, i, j, value)
 16. tibble:::tbl_subassign_col(x, j, value)
 17. tibble:::vectbl_recycle_rows(...)

── 62. Error: (unknown) (@test.geom_interval.R#15)  ────────────────────────────
Tibble columns must have consistent sizes, only values of size one are recycled:
* Size 300: Existing data
* Size 100: Column `.chain`
Backtrace:
  8. tidybayes::spread_draws(., u_tau[i])
  9. base::lapply(...)
 10. tidybayes:::FUN(X[[i]], ...)
 11. tidybayes:::spread_draws_(...)
 12. tidybayes:::spread_draws_long_(...)
 14. tibble:::`[<-.tbl_df`(...)
 15. tibble:::tbl_subassign(x, i, j, value)
 16. tibble:::tbl_subassign_col(x, j, value)
 17. tibble:::vectbl_recycle_rows(...)

── 63. Error: (unknown) (@test.geom_pointinterval.R#14)  ───────────────────────
Tibble columns must have consistent sizes, only values of size one are recycled:
* Size 3000: Existing data
* Size 1000: Column `.chain`
Backtrace:
  8. tidybayes::spread_draws(., u_tau[i])
  9. base::lapply(...)
 10. tidybayes:::FUN(X[[i]], ...)
 11. tidybayes:::spread_draws_(...)
 12. tidybayes:::spread_draws_long_(...)
 14. tibble:::`[<-.tbl_df`(...)
 15. tibble:::tbl_subassign(x, i, j, value)
 16. tibble:::tbl_subassign_col(x, j, value)
 17. tibble:::vectbl_recycle_rows(...)

── 64. Failure: median_qi works on a grouped variable (@test.point_interval.R#49
result.simple$.lower not equal to ref$tau.lower.
names for current but not for target

── 65. Failure: median_qi works on a grouped variable (@test.point_interval.R#50
result.simple$.upper not equal to ref$tau.upper.
names for current but not for target

── 66. Failure: median_qi works on a grouped variable (@test.point_interval.R#52
result$tau.lower not equal to ref$tau.lower.
names for current but not for target

── 67. Failure: median_qi works on a grouped variable (@test.point_interval.R#53
result$tau.upper not equal to ref$tau.upper.
names for current but not for target

── 68. Failure: multiple-response intervals work (@test.point_interval.R#224)  ─
mode_hdi(dd, x, .width = 0.5) not equal to `ref`.
Names: 3 string mismatches
Component 1: Mean relative difference: 46.38168
Component 2: Mean relative difference: 0.579646
Component 3: Mean relative difference: 1.017105

── 69. Failure: [add_]predicted_draws and basic arguments works on a simple rsta
`ref` not equal to predicted_draws(m_hp_wt, mtcars_tbl, n = 100, seed = 123).
Attributes: < Names: 1 string mismatch >
Attributes: < Length mismatch: comparison on first 2 components >
Attributes: < Component "class": Lengths (3, 4) differ (string compare on first 3) >
Attributes: < Component "class": 3 string mismatches >
Attributes: < Component 2: Modes: numeric, list >
Attributes: < Component 2: Lengths: 3200, 13 >
Attributes: < Component 2: names for current but not for target >
Attributes: < Component 2: Attributes: < target is NULL, current is list > >
Attributes: < Component 2: target is numeric, current is tbl_df >

── 70. Failure: [add_]predicted_draws and basic arguments works on a simple rsta
`ref` not equal to add_predicted_draws(mtcars_tbl, m_hp_wt, n = 100, seed = 123).
Attributes: < Names: 1 string mismatch >
Attributes: < Length mismatch: comparison on first 2 components >
Attributes: < Component "class": Lengths (3, 4) differ (string compare on first 3) >
Attributes: < Component "class": 3 string mismatches >
Attributes: < Component 2: Modes: numeric, list >
Attributes: < Component 2: Lengths: 3200, 13 >
Attributes: < Component 2: names for current but not for target >
Attributes: < Component 2: Attributes: < target is NULL, current is list > >
Attributes: < Component 2: target is numeric, current is tbl_df >

── 71. Failure: [add_]predicted_draws and basic arguments works on an rstanarm m
`ref` not equal to predicted_draws(m_cyl, mtcars_tbl, n = 100, seed = 123).
Attributes: < Names: 1 string mismatch >
Attributes: < Length mismatch: comparison on first 2 components >
Attributes: < Component "class": Lengths (3, 4) differ (string compare on first 3) >
Attributes: < Component "class": 3 string mismatches >
Attributes: < Component 2: Modes: numeric, list >
Attributes: < Component 2: Lengths: 3200, 13 >
Attributes: < Component 2: names for current but not for target >
Attributes: < Component 2: Attributes: < target is NULL, current is list > >
Attributes: < Component 2: target is numeric, current is tbl_df >

── 72. Failure: [add_]predicted_draws and basic arguments works on an rstanarm m
`ref` not equal to add_predicted_draws(mtcars_tbl, m_cyl, n = 100, seed = 123).
Attributes: < Names: 1 string mismatch >
Attributes: < Length mismatch: comparison on first 2 components >
Attributes: < Component "class": Lengths (3, 4) differ (string compare on first 3) >
Attributes: < Component "class": 3 string mismatches >
Attributes: < Component 2: Modes: numeric, list >
Attributes: < Component 2: Lengths: 3200, 13 >
Attributes: < Component 2: names for current but not for target >
Attributes: < Component 2: Attributes: < target is NULL, current is list > >
Attributes: < Component 2: target is numeric, current is tbl_df >

── 73. Failure: [add_]predicted_draws works on a simple brms model (@test.predic
predicted_draws(m_hp, mtcars_tbl, n = 100, seed = 123) not equal to `ref`.
Attributes: < Names: 1 string mismatch >
Attributes: < Length mismatch: comparison on first 2 components >
Attributes: < Component "class": Lengths (4, 3) differ (string compare on first 3) >
Attributes: < Component "class": 3 string mismatches >
Attributes: < Component 2: Modes: list, numeric >
Attributes: < Component 2: names for target but not for current >
Attributes: < Component 2: Attributes: < Modes: list, NULL > >
Attributes: < Component 2: Attributes: < names for target but not for current > >
Attributes: < Component 2: Attributes: < current is not list-like > >
...

── 74. Failure: [add_]predicted_draws works on a simple brms model (@test.predic
add_predicted_draws(mtcars_tbl, m_hp, n = 100, seed = 123) not equal to `ref`.
Attributes: < Names: 1 string mismatch >
Attributes: < Length mismatch: comparison on first 2 components >
Attributes: < Component "class": Lengths (4, 3) differ (string compare on first 3) >
Attributes: < Component "class": 3 string mismatches >
Attributes: < Component 2: Modes: list, numeric >
Attributes: < Component 2: names for target but not for current >
Attributes: < Component 2: Attributes: < Modes: list, NULL > >
Attributes: < Component 2: Attributes: < names for target but not for current > >
Attributes: < Component 2: Attributes: < current is not list-like > >
...

── 75. Failure: [add_]predicted_draws works on brms models with categorical outc
predicted_draws(m_cyl_mpg, mtcars_tbl, seed = 1234, n = 100) not equal to `ref`.
Names: 4 string mismatches
Component 13: Attributes: < target is NULL, current is list >
Component 13: target is numeric, current is factor
Component 14: 'is.NA' value mismatch: 0 in current 3200 in target
Component 15: 'is.NA' value mismatch: 3200 in current 0 in target
Component 16: 'current' is not a factor

── 76. Failure: [add_]predicted_draws works on brms models with categorical outc
add_predicted_draws(mtcars_tbl, m_cyl_mpg, seed = 1234, n = 100) not equal to `ref`.
Names: 4 string mismatches
Component 13: Attributes: < target is NULL, current is list >
Component 13: target is numeric, current is factor
Component 14: 'is.NA' value mismatch: 0 in current 3200 in target
Component 15: 'is.NA' value mismatch: 3200 in current 0 in target
Component 16: 'current' is not a factor

── 77. Failure: [add_]predicted_draws works on brms models with dirichlet respon
predicted_draws(m_dirich, grid, seed = 1234, n = 100) not equal to `ref`.
Names: 5 string mismatches
Component 3: 'is.NA' value mismatch: 0 in current 600 in target
Component 4: 'is.NA' value mismatch: 0 in current 600 in target
Component 5: Attributes: < target is NULL, current is list >
Component 5: target is numeric, current is factor
Component 6: 'current' is not a factor
Component 7: 'is.NA' value mismatch: 600 in current 0 in target

── 78. Failure: [add_]residual_draws works on a simple brms model (@test.residua
residual_draws(m_hp, mtcars_tbl) not equal to `ref`.
Attributes: < Names: 1 string mismatch >
Attributes: < Length mismatch: comparison on first 2 components >
Attributes: < Component "class": Lengths (4, 3) differ (string compare on first 3) >
Attributes: < Component "class": 3 string mismatches >
Attributes: < Component 2: Modes: list, numeric >
Attributes: < Component 2: names for target but not for current >
Attributes: < Component 2: Attributes: < Modes: list, NULL > >
Attributes: < Component 2: Attributes: < names for target but not for current > >
Attributes: < Component 2: Attributes: < current is not list-like > >
...

── 79. Failure: [add_]residual_draws works on a simple brms model (@test.residua
add_residual_draws(mtcars_tbl, m_hp) not equal to `ref`.
Attributes: < Names: 1 string mismatch >
Attributes: < Length mismatch: comparison on first 2 components >
Attributes: < Component "class": Lengths (4, 3) differ (string compare on first 3) >
Attributes: < Component "class": 3 string mismatches >
Attributes: < Component 2: Modes: list, numeric >
Attributes: < Component 2: names for target but not for current >
Attributes: < Component 2: Attributes: < Modes: list, NULL > >
Attributes: < Component 2: Attributes: < names for target but not for current > >
Attributes: < Component 2: Attributes: < current is not list-like > >
...

── 80. Failure: spread_draws works on a simple variable with no dimensions (@tes
spread_draws(RankCorr_s, typical_r) not equal to `ref`.
Component "typical_r": names for current but not for target

── 81. Failure: spread_draws works on two variables with no dimensions and multi
spread_draws(line, alpha, beta) not equal to `ref`.
Component "alpha": names for current but not for target
Component "beta": names for current but not for target

── 82. Error: spread_draws works on a variable with one unnamed index  ─────────
Tibble columns must have consistent sizes, only values of size one are recycled:
* Size 30: Existing data
* Size 10: Column `.chain`
Backtrace:
  1. tidybayes::spread_draws(RankCorr_s, tau[i])
  2. base::lapply(...)
  3. tidybayes:::FUN(X[[i]], ...)
  4. tidybayes:::spread_draws_(...)
  5. tidybayes:::spread_draws_long_(...)
  7. tibble:::`[<-.tbl_df`(...)
  8. tibble:::tbl_subassign(x, i, j, value)
  9. tibble:::tbl_subassign_col(x, j, value)
 10. tibble:::vectbl_recycle_rows(...)

── 83. Error: spread_draws works on a variable with one named index  ───────────
Tibble columns must have consistent sizes, only values of size one are recycled:
* Size 30: Existing data
* Size 10: Column `.chain`
Backtrace:
  1. tidybayes::spread_draws(RankCorr_i, tau[i])
  2. base::lapply(...)
  3. tidybayes:::FUN(X[[i]], ...)
  4. tidybayes:::spread_draws_(...)
  5. tidybayes:::spread_draws_long_(...)
  7. tibble:::`[<-.tbl_df`(...)
  8. tibble:::tbl_subassign(x, i, j, value)
  9. tibble:::tbl_subassign_col(x, j, value)
 10. tibble:::vectbl_recycle_rows(...)

── 84. Error: spread_draws works on a variable with one anonymous wide index (@t
Tibble columns must have consistent sizes, only values of size one are recycled:
* Size 30: Existing data
* Size 10: Column `.chain`
Backtrace:
  1. testthat::expect_equal(spread_draws(RankCorr_s, tau[..]), ref)
  4. tidybayes::spread_draws(RankCorr_s, tau[..])
  5. base::lapply(...)
  6. tidybayes:::FUN(X[[i]], ...)
  7. tidybayes:::spread_draws_(...)
  8. tidybayes:::spread_draws_long_(...)
 10. tibble:::`[<-.tbl_df`(...)
 11. tibble:::tbl_subassign(x, i, j, value)
 12. tibble:::tbl_subassign_col(x, j, value)
 13. tibble:::vectbl_recycle_rows(...)

── 85. Error: spread_draws works on a variable with one named wide index (@test.
Tibble columns must have consistent sizes, only values of size one are recycled:
* Size 30: Existing data
* Size 10: Column `.chain`
Backtrace:
  1. testthat::expect_equal(...)
  4. tidybayes::spread_draws(RankCorr_i, tau[i] | i)
  5. base::lapply(...)
  6. tidybayes:::FUN(X[[i]], ...)
  7. tidybayes:::spread_draws_(...)
  8. tidybayes:::spread_draws_long_(...)
 10. tibble:::`[<-.tbl_df`(...)
 11. tibble:::tbl_subassign(x, i, j, value)
 12. tibble:::tbl_subassign_col(x, j, value)
 13. tibble:::vectbl_recycle_rows(...)

── 86. Error: spread_draws works on a variable with two named dimensions  ──────
Tibble columns must have consistent sizes, only values of size one are recycled:
* Size 120: Existing data
* Size 10: Column `.chain`
Backtrace:
  1. tidybayes::spread_draws(RankCorr_ij, b[i, j])
  2. base::lapply(...)
  3. tidybayes:::FUN(X[[i]], ...)
  4. tidybayes:::spread_draws_(...)
  5. tidybayes:::spread_draws_long_(...)
  7. tibble:::`[<-.tbl_df`(...)
  8. tibble:::tbl_subassign(x, i, j, value)
  9. tibble:::tbl_subassign_col(x, j, value)
 10. tibble:::vectbl_recycle_rows(...)

── 87. Error: spread_draws works on a variable with two named dimensions, one th
Tibble columns must have consistent sizes, only values of size one are recycled:
* Size 120: Existing data
* Size 10: Column `.chain`
Backtrace:
  1. tidybayes::spread_draws(RankCorr_ij, b[i, j] | j)
  2. base::lapply(...)
  3. tidybayes:::FUN(X[[i]], ...)
  4. tidybayes:::spread_draws_(...)
  5. tidybayes:::spread_draws_long_(...)
  7. tibble:::`[<-.tbl_df`(...)
  8. tibble:::tbl_subassign(x, i, j, value)
  9. tibble:::tbl_subassign_col(x, j, value)
 10. tibble:::vectbl_recycle_rows(...)

── 88. Error: spread_draws works on a variable with one named index and one wide
Tibble columns must have consistent sizes, only values of size one are recycled:
* Size 120: Existing data
* Size 10: Column `.chain`
Backtrace:
  1. tidybayes::spread_draws(RankCorr_i, b[i, ..])
  2. base::lapply(...)
  3. tidybayes:::FUN(X[[i]], ...)
  4. tidybayes:::spread_draws_(...)
  5. tidybayes:::spread_draws_long_(...)
  7. tibble:::`[<-.tbl_df`(...)
  8. tibble:::tbl_subassign(x, i, j, value)
  9. tibble:::tbl_subassign_col(x, j, value)
 10. tibble:::vectbl_recycle_rows(...)

── 89. Failure: spread_draws does not allow extraction of two variables simultan
`spread_draws(RankCorr_s, c(tau, u_tau)[..])` threw an error with unexpected message.
Expected match: "Cannot extract draws from multiple variables in wide format."
Actual message: "Tibble columns must have consistent sizes, only values of size one are recycled:\n* Size 30: Existing data\n* Size 10: Column `.chain`"
Backtrace:
  1. testthat::expect_error(...)
  6. tidybayes::spread_draws(RankCorr_s, c(tau, u_tau)[..])
  7. base::lapply(...)
  8. tidybayes:::FUN(X[[i]], ...)
  9. tidybayes:::spread_draws_(...)
 10. tidybayes:::spread_draws_long_(...)
 12. tibble:::`[<-.tbl_df`(...)
 13. tibble:::tbl_subassign(x, i, j, value)
 14. tibble:::tbl_subassign_col(x, j, value)
 15. tibble:::vectbl_recycle_rows(...)

── 90. Failure: spread_draws does not allow extraction of two variables simultan
`spread_draws(RankCorr_s, c(tau, u_tau)[i] | i)` threw an error with unexpected message.
Expected match: "Cannot extract draws from multiple variables in wide format."
Actual message: "Tibble columns must have consistent sizes, only values of size one are recycled:\n* Size 30: Existing data\n* Size 10: Column `.chain`"
Backtrace:
  1. testthat::expect_error(...)
  6. tidybayes::spread_draws(RankCorr_s, c(tau, u_tau)[i] | i)
  7. base::lapply(...)
  8. tidybayes:::FUN(X[[i]], ...)
  9. tidybayes:::spread_draws_(...)
 10. tidybayes:::spread_draws_long_(...)
 12. tibble:::`[<-.tbl_df`(...)
 13. tibble:::tbl_subassign(x, i, j, value)
 14. tibble:::tbl_subassign_col(x, j, value)
 15. tibble:::vectbl_recycle_rows(...)

── 91. Error: spread_draws correctly extracts multiple variables simultaneously 
Tibble columns must have consistent sizes, only values of size one are recycled:
* Size 30: Existing data
* Size 10: Column `.chain`
Backtrace:
  1. testthat::expect_equal(...)
  4. tidybayes::spread_draws(RankCorr_i, c(tau, u_tau)[i])
  5. base::lapply(...)
  6. tidybayes:::FUN(X[[i]], ...)
  7. tidybayes:::spread_draws_(...)
  8. tidybayes:::spread_draws_long_(...)
 10. tibble:::`[<-.tbl_df`(...)
 11. tibble:::tbl_subassign(x, i, j, value)
 12. tibble:::tbl_subassign_col(x, j, value)
 13. tibble:::vectbl_recycle_rows(...)

── 92. Error: spread_draws multispec syntax joins results correctly (@test.sprea
Tibble columns must have consistent sizes, only values of size one are recycled:
* Size 30: Existing data
* Size 10: Column `.chain`
Backtrace:
  1. tidybayes::spread_draws(RankCorr_s, typical_r)
  8. dplyr::inner_join(...)
 15. base::lapply(...)
 16. tidybayes:::FUN(X[[i]], ...)
 17. tidybayes:::spread_draws_(...)
 18. tidybayes:::spread_draws_long_(...)
 20. tibble:::`[<-.tbl_df`(...)
 21. tibble:::tbl_subassign(x, i, j, value)
 22. tibble:::tbl_subassign_col(x, j, value)
 23. tibble:::vectbl_recycle_rows(...)

── 93. Error: spread_draws multispec with different dimensions retains grouping 
Tibble columns must have consistent sizes, only values of size one are recycled:
* Size 30: Existing data
* Size 10: Column `.chain`
Backtrace:
  8. tidybayes::spread_draws(., typical_r, tau[i], b[i, j])
  9. base::lapply(...)
 10. tidybayes:::FUN(X[[i]], ...)
 11. tidybayes:::spread_draws_(...)
 12. tidybayes:::spread_draws_long_(...)
 14. tibble:::`[<-.tbl_df`(...)
 15. tibble:::tbl_subassign(x, i, j, value)
 16. tibble:::tbl_subassign_col(x, j, value)
 17. tibble:::vectbl_recycle_rows(...)

── 94. Error: groups from spread_draws retain factor level names (@test.spread_d
Tibble columns must have consistent sizes, only values of size one are recycled:
* Size 30: Existing data
* Size 10: Column `.chain`
Backtrace:
  9. tidybayes::spread_draws(., tau[i])
 10. base::lapply(...)
 11. tidybayes:::FUN(X[[i]], ...)
 12. tidybayes:::spread_draws_(...)
 13. tidybayes:::spread_draws_long_(...)
 15. tibble:::`[<-.tbl_df`(...)
 16. tibble:::tbl_subassign(x, i, j, value)
 17. tibble:::tbl_subassign_col(x, j, value)
 18. tibble:::vectbl_recycle_rows(...)

── 95. Error: empty dimensions are dropped (@test.spread_draws.R#256)  ─────────
Tibble columns must have consistent sizes, only values of size one are recycled:
* Size 30: Existing data
* Size 10: Column `.chain`
Backtrace:
  8. tidybayes::spread_draws(., tau[i])
  9. base::lapply(...)
 10. tidybayes:::FUN(X[[i]], ...)
 11. tidybayes:::spread_draws_(...)
 12. tidybayes:::spread_draws_long_(...)
 14. tibble:::`[<-.tbl_df`(...)
 15. tibble:::tbl_subassign(x, i, j, value)
 16. tibble:::tbl_subassign_col(x, j, value)
 17. tibble:::vectbl_recycle_rows(...)

── 96. Error: dimensions with existing names as strings are made wide as strings
Tibble columns must have consistent sizes, only values of size one are recycled:
* Size 20: Existing data
* Size 10: Column `.chain`
Backtrace:
  8. tidybayes::spread_draws(., x[k])
  9. base::lapply(...)
 10. tidybayes:::FUN(X[[i]], ...)
 11. tidybayes:::spread_draws_(...)
 12. tidybayes:::spread_draws_long_(...)
 14. tibble:::`[<-.tbl_df`(...)
 15. tibble:::tbl_subassign(x, i, j, value)
 16. tibble:::tbl_subassign_col(x, j, value)
 17. tibble:::vectbl_recycle_rows(...)

── 97. Error: regular expressions for variable names work on indexed variables (
Tibble columns must have consistent sizes, only values of size one are recycled:
* Size 30: Existing data
* Size 10: Column `.chain`
Backtrace:
  1. tidybayes::spread_draws(RankCorr_s, c(tau, u_tau)[i])
  2. base::lapply(...)
  3. tidybayes:::FUN(X[[i]], ...)
  4. tidybayes:::spread_draws_(...)
  5. tidybayes:::spread_draws_long_(...)
  7. tibble:::`[<-.tbl_df`(...)
  8. tibble:::tbl_subassign(x, i, j, value)
  9. tibble:::tbl_subassign_col(x, j, value)
 10. tibble:::vectbl_recycle_rows(...)

── 98. Error: nested matrices are correctly extracted (@test.spread_draws.R#355)
Tibble columns must have consistent sizes, only values of size one are recycled:
* Size 40: Existing data
* Size 2: Column `.chain`
Backtrace:
 1. testthat::expect_equal(...)
 4. tidybayes:::spread_draws_long_(test_draws, "x", c("i", "."))
 6. tibble:::`[<-.tbl_df`(...)
 7. tibble:::tbl_subassign(x, i, j, value)
 8. tibble:::tbl_subassign_col(x, j, value)
 9. tibble:::vectbl_recycle_rows(...)

── 99. Error: nested 3d arrays are correctly extracted (@test.spread_draws.R#385
Tibble columns must have consistent sizes, only values of size one are recycled:
* Size 24: Existing data
* Size 2: Column `.chain`
Backtrace:
 1. testthat::expect_equal(...)
 4. tidybayes:::spread_draws_long_(test_draws, "x", c(".", ".", "."))
 6. tibble:::`[<-.tbl_df`(...)
 7. tibble:::tbl_subassign(x, i, j, value)
 8. tibble:::tbl_subassign_col(x, j, value)
 9. tibble:::vectbl_recycle_rows(...)

── 100. Error: nested matrices with multiple variables are correctly extracted (
Tibble columns must have consistent sizes, only values of size one are recycled:
* Size 32: Existing data
* Size 2: Column `.chain`
Backtrace:
 1. testthat::expect_equal(...)
 4. tidybayes:::spread_draws_long_(...)
 6. tibble:::`[<-.tbl_df`(...)
 7. tibble:::tbl_subassign(x, i, j, value)
 8. tibble:::tbl_subassign_col(x, j, value)
 9. tibble:::vectbl_recycle_rows(...)

── 101. Error: nested matrices with named columns correctly extracted (@test.spr
Tibble columns must have consistent sizes, only values of size one are recycled:
* Size 8: Existing data
* Size 2: Column `.chain`
Backtrace:
 1. testthat::expect_equal(...)
 4. tidybayes:::spread_draws_long_(test_draws, "x", c(".", "."))
 6. tibble:::`[<-.tbl_df`(...)
 7. tibble:::tbl_subassign(x, i, j, value)
 8. tibble:::tbl_subassign_col(x, j, value)
 9. tibble:::vectbl_recycle_rows(...)

── 102. Error: nested ragged arrays are correctly extracted (@test.spread_draws.
Tibble columns must have consistent sizes, only values of size one are recycled:
* Size 8: Existing data
* Size 2: Column `.chain`
Backtrace:
 1. testthat::expect_equal(...)
 4. tidybayes:::spread_draws_long_(test_draws, "x", c(".", "."))
 6. tibble:::`[<-.tbl_df`(...)
 7. tibble:::tbl_subassign(x, i, j, value)
 8. tibble:::tbl_subassign_col(x, j, value)
 9. tibble:::vectbl_recycle_rows(...)

── 103. Error: ungather_draws works on a simple parameter with no dimensions (@t
Tibble columns must have consistent sizes, only values of size one are recycled:
* Size 12000: Existing data
* Size 1000: Column `.chain`
Backtrace:
  8. tidybayes::gather_draws(., typical_r, b[i, j])
  9. base::lapply(...)
 10. tidybayes:::FUN(X[[i]], ...)
 13. tidybayes:::spread_draws_(...)
 14. tidybayes:::spread_draws_long_(...)
 16. tibble:::`[<-.tbl_df`(...)
 17. tibble:::tbl_subassign(x, i, j, value)
 18. tibble:::tbl_subassign_col(x, j, value)
 19. tibble:::vectbl_recycle_rows(...)

── 104. Error: ungather_draws works on multiple parameters with different dimens
Tibble columns must have consistent sizes, only values of size one are recycled:
* Size 12000: Existing data
* Size 1000: Column `.chain`
Backtrace:
  8. tidybayes::gather_draws(., b[i, j], c(u_tau, tau)[i])
  9. base::lapply(...)
 10. tidybayes:::FUN(X[[i]], ...)
 13. tidybayes:::spread_draws_(...)
 14. tidybayes:::spread_draws_long_(...)
 16. tibble:::`[<-.tbl_df`(...)
 17. tibble:::tbl_subassign(x, i, j, value)
 18. tibble:::tbl_subassign_col(x, j, value)
 19. tibble:::vectbl_recycle_rows(...)

── 105. Error: ungather_draws(drop_indices = TRUE) drops draw indices (@test.ung
Tibble columns must have consistent sizes, only values of size one are recycled:
* Size 12000: Existing data
* Size 1000: Column `.chain`
Backtrace:
  8. tidybayes::gather_draws(., b[i, j], c(u_tau, tau)[i])
  9. base::lapply(...)
 10. tidybayes:::FUN(X[[i]], ...)
 13. tidybayes:::spread_draws_(...)
 14. tidybayes:::spread_draws_long_(...)
 16. tibble:::`[<-.tbl_df`(...)
 17. tibble:::tbl_subassign(x, i, j, value)
 18. tibble:::tbl_subassign_col(x, j, value)
 19. tibble:::vectbl_recycle_rows(...)

── 106. Error: unspread_draws works on a simple parameter with no dimensions (@t
Tibble columns must have consistent sizes, only values of size one are recycled:
* Size 12000: Existing data
* Size 1000: Column `.chain`
Backtrace:
  8. tidybayes::spread_draws(., typical_r, b[i, j])
  9. base::lapply(...)
 10. tidybayes:::FUN(X[[i]], ...)
 11. tidybayes:::spread_draws_(...)
 12. tidybayes:::spread_draws_long_(...)
 14. tibble:::`[<-.tbl_df`(...)
 15. tibble:::tbl_subassign(x, i, j, value)
 16. tibble:::tbl_subassign_col(x, j, value)
 17. tibble:::vectbl_recycle_rows(...)

── 107. Error: unspread_draws works on a multiple parameters with different dime
Tibble columns must have consistent sizes, only values of size one are recycled:
* Size 12000: Existing data
* Size 1000: Column `.chain`
Backtrace:
  8. tidybayes::spread_draws(., b[i, j], c(u_tau, tau)[i])
  9. base::lapply(...)
 10. tidybayes:::FUN(X[[i]], ...)
 11. tidybayes:::spread_draws_(...)
 12. tidybayes:::spread_draws_long_(...)
 14. tibble:::`[<-.tbl_df`(...)
 15. tibble:::tbl_subassign(x, i, j, value)
 16. tibble:::tbl_subassign_col(x, j, value)
 17. tibble:::vectbl_recycle_rows(...)

── 108. Error: unspread_draws(drop_indices = TRUE) drops draw indices (@test.uns
Tibble columns must have consistent sizes, only values of size one are recycled:
* Size 12000: Existing data
* Size 1000: Column `.chain`
Backtrace:
  8. tidybayes::spread_draws(., b[i, j], c(u_tau, tau)[i])
  9. base::lapply(...)
 10. tidybayes:::FUN(X[[i]], ...)
 11. tidybayes:::spread_draws_(...)
 12. tidybayes:::spread_draws_long_(...)
 14. tibble:::`[<-.tbl_df`(...)
 15. tibble:::tbl_subassign(x, i, j, value)
 16. tibble:::tbl_subassign_col(x, j, value)
 17. tibble:::vectbl_recycle_rows(...)

══ testthat results  ═══════════════════════════════════════════════════════════
[ OK: 210 | SKIPPED: 111 | WARNINGS: 5 | FAILED: 108 ]
1. Failure: add_draws works on fit from a simple rstanarm model (@test.add_draws.R#36) 
2. Failure: add_draws works on fit from a simple rstanarm model (@test.add_draws.R#37) 
3. Failure: pairwise level comparison works (@test.compare_levels.R#41) 
4. Failure: pairwise level comparison works (@test.compare_levels.R#43) 
5. Failure: pairwise level comparison works (@test.compare_levels.R#44) 
6. Failure: ordered level comparison works (@test.compare_levels.R#59) 
7. Failure: ordered level comparison works (@test.compare_levels.R#60) 
8. Failure: control level comparison works (@test.compare_levels.R#75) 
9. Failure: named functions are supported and named with their own name (@test.compare_levels.R#102) 
1. ...

Error: testthat unit tests failed
Execution halted

2 errors x | 0 warnings ✓ | 0 notes ✓
mjskay commented 4 years ago

Thanks --- I've got to do a minor release soon for the stringsAsFactors change in R 4 so I'll fix this at the same time.

mjskay commented 4 years ago

K, various issues with the dev version of dplyr in tidybayes should be fixed now. I am submitting a version of tidybayes with those fixes to CRAN today or tomorrow.

romainfrancois commented 4 years ago

Thanks :-)