Running ‘testthat.R’ [169s/282s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > # 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")
  Error in h(simpleError(msg, call)) : 
    error in evaluating the argument 'x' in selecting a method for function 'as.matrix': 'tcrossprod' is not an exported object from 'namespace:Matrix'
  Error in h(simpleError(msg, call)) : 
    error in evaluating the argument 'x' in selecting a method for function 'as.matrix': 'tcrossprod' is not an exported object from 'namespace:Matrix'
  [ FAIL 2 | WARN 0 | SKIP 6 | PASS 397 ]
  
  ══ Skipped tests (6) ═══════════════════════════════════════════════════════════
  • On CRAN (6): 'test.geom_dotsinterval.R:23:3', 'test.geom_interval.R:22:3',
    'test.geom_pointinterval.R:21:3', 'test.stat_dist_slabinterval.R:23:3',
    'test.stat_eye.R:20:3', 'test.stat_eye.R:51:3'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test.epred_draws.R:234:3'): [add_]epred_draws works on simple brms models with multiple dpars ──
  Error: Something went wrong (see the error message above). Perhaps you transformed numeric variables to factors or vice versa within the model formula? If yes, please convert your variables beforehand. Or did you use a grouping factor also for a different purpose? If yes, please make sure that its factor levels are correct also in the new data you may have provided.
  Backtrace:
       ▆
    1. ├─... %>% as_tibble() at test.epred_draws.R:234:2
    2. ├─tibble::as_tibble(.)
    3. ├─tidyr::gather(., .row, .epred, -.chain, -.iteration, -.draw)
    4. ├─dplyr::mutate(...)
    5. ├─rlang::set_names(., seq_len(ncol(.)))
    6. ├─base::as.data.frame(.)
    7. ├─rstantools::posterior_epred(m_dpars, df_dpars)
    8. └─brms:::posterior_epred.brmsfit(m_dpars, df_dpars)
    9.   ├─rstantools::posterior_epred(...)
   10.   └─brms:::posterior_epred.brmsprep(...)
   11.     └─brms::get_dpar(object, dpar = dp)
   12.       ├─brms:::predictor(x, i = i, fprep = prep)
   13.       └─brms:::predictor.bprepl(x, i = i, fprep = prep)
   14.         └─brms:::predictor_re(prep, i)
   15.           └─brms:::stop2(...)
  ── Error ('test.epred_rvars.R:140:3'): [add_]epred_rvars works on simple brms models with multiple dpars ──
  <dplyr:::mutate_error/rlang_error/error/condition>
  Error in `mutate(., .epred = rvar(rstantools::posterior_epred(m_dpars, 
      newdata = df_dpars)), mu1 = rvar(rstantools::posterior_epred(m_dpars, 
      newdata = df_dpars, dpar = "mu1")), mu2 = rvar(rstantools::posterior_epred(m_dpars, 
      newdata = df_dpars, dpar = "mu2")))`: ℹ In argument: `.epred = rvar(rstantools::posterior_epred(m_dpars,
    newdata = df_dpars))`.
  Caused by error:
  ! Something went wrong (see the error message above). Perhaps you transformed numeric variables to factors or vice versa within the model formula? If yes, please convert your variables beforehand. Or did you use a grouping factor also for a different purpose? If yes, please make sure that its factor levels are correct also in the new data you may have provided.
  Backtrace:
       ▆
    1. ├─df_dpars %>% ... at test.epred_rvars.R:140:2
    2. ├─dplyr::mutate(...)
    3. ├─dplyr:::mutate.data.frame(...)
    4. │ └─dplyr:::mutate_cols(.data, dplyr_quosures(...), by)
    5. │   ├─base::withCallingHandlers(...)
    6. │   └─dplyr:::mutate_col(dots[[i]], data, mask, new_columns)
    7. │     └─mask$eval_all_mutate(quo)
    8. │       └─dplyr (local) eval()
    9. ├─posterior::rvar(rstantools::posterior_epred(m_dpars, newdata = df_dpars))
   10. │ └─posterior::is_rvar(x)
   11. ├─rstantools::posterior_epred(m_dpars, newdata = df_dpars)
   12. ├─brms:::posterior_epred.brmsfit(m_dpars, newdata = df_dpars)
   13. │ ├─rstantools::posterior_epred(...)
   14. │ └─brms:::posterior_epred.brmsprep(...)
   15. │   └─brms::get_dpar(object, dpar = dp)
   16. │     ├─brms:::predictor(x, i = i, fprep = prep)
   17. │     └─brms:::predictor.bprepl(x, i = i, fprep = prep)
   18. │       └─brms:::predictor_re(prep, i)
   19. │         └─brms:::stop2(...)
   20. │           └─base::stop(..., call. = FALSE)
   21. └─base::.handleSimpleError(...)
   22.   └─dplyr (local) h(simpleError(msg, call))
   23.     └─rlang::abort(message, class = error_class, parent = parent, call = error_call)
  
  [ FAIL 2 | WARN 0 | SKIP 6 | PASS 397 ]
  Deleting unused snapshots:
  • test.geom_dotsinterval/stat-dotsh-with-a-group-with-1-dot.svg
  • test.geom_interval/grouped-intervals-h-stat.svg
  • test.geom_pointinterval/grouped-pointintervals-h-stat.svg
  • test.stat_dist_slabinterval/ccdfintervalh-using-args.svg
  • test.stat_eye/one-parameter-horizontal-eye-mode-hdi.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
  Error: Test failures
  Execution halted