Running ‘testthat.R’ [19s/30s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(tidyposterior)
  > 
  > test_check("tidyposterior")
  
  SAMPLING FOR MODEL 'continuous' NOW (CHAIN 1).
  Chain 1: 
  Chain 1: Gradient evaluation took 0 seconds
  Chain 1: 1000 transitions using 10 leapfrog steps per transition would take 0 seconds.
  Chain 1: Adjust your expectations accordingly!
  Chain 1: 
  Chain 1: 
  Chain 1: WARNING: There aren't enough warmup iterations to fit the
  Chain 1:          three stages of adaptation as currently configured.
  Chain 1:          Reducing each adaptation stage to 15%/75%/10% of
  Chain 1:          the given number of warmup iterations:
  Chain 1:            init_buffer = 7
  Chain 1:            adapt_window = 38
  Chain 1:            term_buffer = 5
  Chain 1: 
  Chain 1: Iteration:  1 / 100 [  1%]  (Warmup)
  Chain 1: Iteration: 10 / 100 [ 10%]  (Warmup)
  Chain 1: Iteration: 20 / 100 [ 20%]  (Warmup)
  Chain 1: Iteration: 30 / 100 [ 30%]  (Warmup)
  Chain 1: Iteration: 40 / 100 [ 40%]  (Warmup)
  Chain 1: Iteration: 50 / 100 [ 50%]  (Warmup)
  Chain 1: Iteration: 51 / 100 [ 51%]  (Sampling)
  Chain 1: Iteration: 60 / 100 [ 60%]  (Sampling)
  Chain 1: Iteration: 70 / 100 [ 70%]  (Sampling)
  Chain 1: Iteration: 80 / 100 [ 80%]  (Sampling)
  Chain 1: Iteration: 90 / 100 [ 90%]  (Sampling)
  Chain 1: Iteration: 100 / 100 [100%]  (Sampling)
  Chain 1: 
  Chain 1:  Elapsed Time: 0.065646 seconds (Warm-up)
  Chain 1:                0.082991 seconds (Sampling)
  Chain 1:                0.148637 seconds (Total)
  Chain 1: 
  
  SAMPLING FOR MODEL 'continuous' NOW (CHAIN 2).
  Chain 2: 
  Chain 2: Gradient evaluation took 0 seconds
  Chain 2: 1000 transitions using 10 leapfrog steps per transition would take 0 seconds.
  Chain 2: Adjust your expectations accordingly!
  Chain 2: 
  Chain 2: 
  Chain 2: WARNING: There aren't enough warmup iterations to fit the
  Chain 2:          three stages of adaptation as currently configured.
  Chain 2:          Reducing each adaptation stage to 15%/75%/10% of
  Chain 2:          the given number of warmup iterations:
  Chain 2:            init_buffer = 7
  Chain 2:            adapt_window = 38
  Chain 2:            term_buffer = 5
  Chain 2: 
  Chain 2: Iteration:  1 / 100 [  1%]  (Warmup)
  Chain 2: Iteration: 10 / 100 [ 10%]  (Warmup)
  Chain 2: Iteration: 20 / 100 [ 20%]  (Warmup)
  Chain 2: Iteration: 30 / 100 [ 30%]  (Warmup)
  Chain 2: Iteration: 40 / 100 [ 40%]  (Warmup)
  Chain 2: Iteration: 50 / 100 [ 50%]  (Warmup)
  Chain 2: Iteration: 51 / 100 [ 51%]  (Sampling)
  Chain 2: Iteration: 60 / 100 [ 60%]  (Sampling)
  Chain 2: Iteration: 70 / 100 [ 70%]  (Sampling)
  Chain 2: Iteration: 80 / 100 [ 80%]  (Sampling)
  Chain 2: Iteration: 90 / 100 [ 90%]  (Sampling)
  Chain 2: Iteration: 100 / 100 [100%]  (Sampling)
  Chain 2: 
  Chain 2:  Elapsed Time: 0.073624 seconds (Warm-up)
  Chain 2:                0.083522 seconds (Sampling)
  Chain 2:                0.157146 seconds (Total)
  Chain 2: 
  
  SAMPLING FOR MODEL 'continuous' NOW (CHAIN 1).
  Chain 1: 
  Chain 1: Gradient evaluation took 0 seconds
  Chain 1: 1000 transitions using 10 leapfrog steps per transition would take 0 seconds.
  Chain 1: Adjust your expectations accordingly!
  Chain 1: 
  Chain 1: 
  Chain 1: WARNING: There aren't enough warmup iterations to fit the
  Chain 1:          three stages of adaptation as currently configured.
  Chain 1:          Reducing each adaptation stage to 15%/75%/10% of
  Chain 1:          the given number of warmup iterations:
  Chain 1:            init_buffer = 3
  Chain 1:            adapt_window = 20
  Chain 1:            term_buffer = 2
  Chain 1: 
  Chain 1: Iteration:  1 / 50 [  2%]  (Warmup)
  Chain 1: Iteration:  5 / 50 [ 10%]  (Warmup)
  Chain 1: Iteration: 10 / 50 [ 20%]  (Warmup)
  Chain 1: Iteration: 15 / 50 [ 30%]  (Warmup)
  Chain 1: Iteration: 20 / 50 [ 40%]  (Warmup)
  Chain 1: Iteration: 25 / 50 [ 50%]  (Warmup)
  Chain 1: Iteration: 26 / 50 [ 52%]  (Sampling)
  Chain 1: Iteration: 30 / 50 [ 60%]  (Sampling)
  Chain 1: Iteration: 35 / 50 [ 70%]  (Sampling)
  Chain 1: Iteration: 40 / 50 [ 80%]  (Sampling)
  Chain 1: Iteration: 45 / 50 [ 90%]  (Sampling)
  Chain 1: Iteration: 50 / 50 [100%]  (Sampling)
  Chain 1: 
  Chain 1:  Elapsed Time: 0.031995 seconds (Warm-up)
  Chain 1:                0.044801 seconds (Sampling)
  Chain 1:                0.076796 seconds (Total)
  Chain 1: 
  
  SAMPLING FOR MODEL 'continuous' NOW (CHAIN 2).
  Chain 2: 
  Chain 2: Gradient evaluation took 0 seconds
  Chain 2: 1000 transitions using 10 leapfrog steps per transition would take 0 seconds.
  Chain 2: Adjust your expectations accordingly!
  Chain 2: 
  Chain 2: 
  Chain 2: WARNING: There aren't enough warmup iterations to fit the
  Chain 2:          three stages of adaptation as currently configured.
  Chain 2:          Reducing each adaptation stage to 15%/75%/10% of
  Chain 2:          the given number of warmup iterations:
  Chain 2:            init_buffer = 3
  Chain 2:            adapt_window = 20
  Chain 2:            term_buffer = 2
  Chain 2: 
  Chain 2: Iteration:  1 / 50 [  2%]  (Warmup)
  Chain 2: Iteration:  5 / 50 [ 10%]  (Warmup)
  Chain 2: Iteration: 10 / 50 [ 20%]  (Warmup)
  Chain 2: Iteration: 15 / 50 [ 30%]  (Warmup)
  Chain 2: Iteration: 20 / 50 [ 40%]  (Warmup)
  Chain 2: Iteration: 25 / 50 [ 50%]  (Warmup)
  Chain 2: Iteration: 26 / 50 [ 52%]  (Sampling)
  Chain 2: Iteration: 30 / 50 [ 60%]  (Sampling)
  Chain 2: Iteration: 35 / 50 [ 70%]  (Sampling)
  Chain 2: Iteration: 40 / 50 [ 80%]  (Sampling)
  Chain 2: Iteration: 45 / 50 [ 90%]  (Sampling)
  Chain 2: Iteration: 50 / 50 [100%]  (Sampling)
  Chain 2: 
  Chain 2:  Elapsed Time: 0.0997 seconds (Warm-up)
  Chain 2:                0.075213 seconds (Sampling)
  Chain 2:                0.174913 seconds (Total)
  Chain 2: 
  
  SAMPLING FOR MODEL 'continuous' NOW (CHAIN 1).
  Chain 1: 
  Chain 1: Gradient evaluation took 0 seconds
  Chain 1: 1000 transitions using 10 leapfrog steps per transition would take 0 seconds.
  Chain 1: Adjust your expectations accordingly!
  Chain 1: 
  Chain 1: 
  Chain 1: WARNING: There aren't enough warmup iterations to fit the
  Chain 1:          three stages of adaptation as currently configured.
  Chain 1:          Reducing each adaptation stage to 15%/75%/10% of
  Chain 1:          the given number of warmup iterations:
  Chain 1:            init_buffer = 3
  Chain 1:            adapt_window = 20
  Chain 1:            term_buffer = 2
  Chain 1: 
  Chain 1: Iteration:  1 / 50 [  2%]  (Warmup)
  Chain 1: Iteration:  5 / 50 [ 10%]  (Warmup)
  Chain 1: Iteration: 10 / 50 [ 20%]  (Warmup)
  Chain 1: Iteration: 15 / 50 [ 30%]  (Warmup)
  Chain 1: Iteration: 20 / 50 [ 40%]  (Warmup)
  Chain 1: Iteration: 25 / 50 [ 50%]  (Warmup)
  Chain 1: Iteration: 26 / 50 [ 52%]  (Sampling)
  Chain 1: Iteration: 30 / 50 [ 60%]  (Sampling)
  Chain 1: Iteration: 35 / 50 [ 70%]  (Sampling)
  Chain 1: Iteration: 40 / 50 [ 80%]  (Sampling)
  Chain 1: Iteration: 45 / 50 [ 90%]  (Sampling)
  Chain 1: Iteration: 50 / 50 [100%]  (Sampling)
  Chain 1: 
  Chain 1:  Elapsed Time: 0.019997 seconds (Warm-up)
  Chain 1:                0.013744 seconds (Sampling)
  Chain 1:                0.033741 seconds (Total)
  Chain 1: 
  
  SAMPLING FOR MODEL 'continuous' NOW (CHAIN 2).
  Chain 2: 
  Chain 2: Gradient evaluation took 0 seconds
  Chain 2: 1000 transitions using 10 leapfrog steps per transition would take 0 seconds.
  Chain 2: Adjust your expectations accordingly!
  Chain 2: 
  Chain 2: 
  Chain 2: WARNING: There aren't enough warmup iterations to fit the
  Chain 2:          three stages of adaptation as currently configured.
  Chain 2:          Reducing each adaptation stage to 15%/75%/10% of
  Chain 2:          the given number of warmup iterations:
  Chain 2:            init_buffer = 3
  Chain 2:            adapt_window = 20
  Chain 2:            term_buffer = 2
  Chain 2: 
  Chain 2: Iteration:  1 / 50 [  2%]  (Warmup)
  Chain 2: Iteration:  5 / 50 [ 10%]  (Warmup)
  Chain 2: Iteration: 10 / 50 [ 20%]  (Warmup)
  Chain 2: Iteration: 15 / 50 [ 30%]  (Warmup)
  Chain 2: Iteration: 20 / 50 [ 40%]  (Warmup)
  Chain 2: Iteration: 25 / 50 [ 50%]  (Warmup)
  Chain 2: Iteration: 26 / 50 [ 52%]  (Sampling)
  Chain 2: Iteration: 30 / 50 [ 60%]  (Sampling)
  Chain 2: Iteration: 35 / 50 [ 70%]  (Sampling)
  Chain 2: Iteration: 40 / 50 [ 80%]  (Sampling)
  Chain 2: Iteration: 45 / 50 [ 90%]  (Sampling)
  Chain 2: Iteration: 50 / 50 [100%]  (Sampling)
  Chain 2: 
  Chain 2:  Elapsed Time: 0.016001 seconds (Warm-up)
  Chain 2:                0.019995 seconds (Sampling)
  Chain 2:                0.035996 seconds (Total)
  Chain 2: 
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Failure (test_perf_mod.R:217:3): workflow sets ──────────────────────────────
  `rsq_mod <- perf_mod(wset, seed = 3, refresh = 0, metric = "rsq")` threw an error.
  Message: Can't subset columns that don't exist.
  ✖ Column `.config` doesn't exist.
  Class:   vctrs_error_subscript_oob/vctrs_error_subscript/rlang_error/error/condition
  Backtrace:
       █
    1. ├─testthat::expect_error(...) test_perf_mod.R:217:2
    2. │ └─testthat:::quasi_capture(...)
    3. │   ├─testthat:::.capture(...)
    4. │   │ └─base::withCallingHandlers(...)
    5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    6. ├─tidyposterior::perf_mod(wset, seed = 3, refresh = 0, metric = "rsq")
    7. ├─tidyposterior:::perf_mod.workflow_set(...)
    8. │ ├─`%>%`(...)
    9. │ ├─tune::collect_metrics(object, summarize = FALSE)
   10. │ └─workflowsets:::collect_metrics.workflow_set(object, summarize = FALSE)
   11. │   └─`%>%`(...)
   12. ├─dplyr::filter(., .metric == metric & id != "Apparent")
   13. └─workflowsets:::reorder_cols(.)
   14.   ├─dplyr::relocate(x, !!!cols)
   15.   └─dplyr:::relocate.data.frame(x, !!!cols)
   16.     └─tidyselect::eval_select(expr(c(...)), .data)
   17.       └─tidyselect:::eval_select_impl(...)
   18.         ├─tidyselect:::with_subscript_errors(...)
   19.         │ ├─base::tryCatch(...)
   20.         │ │ └─base:::tryCatchList(expr, classes, parentenv, handlers)
   21.         │ │   └─base:::tryCatchOne(expr, names, parentenv, handlers[[1L]])
   22.         │ │     └─base:::doTryCatch(return(expr), name, parentenv, handler)
   23.         │ └─tidyselect:::instrument_base_errors(expr)
   24.         │   └─base::withCallingHandlers(...)
   25.         └─tidyselect:::vars_select_eval(...)
   26.           └─tidyselect:::walk_data_tree(expr, data_mask, context_mask)
   27.             └─tidyselect:::eval_c(expr, data_mask, context_mask)
   28.               └─tidyselect:::reduce_sels(node, data_mask, context_mask, init = init)
   29.                 └─tidyselect:::walk_data_tree(new, data_mask, context_mask)
   30.                   └─tidyselect:::as_indices_sel_impl(...)
   31.                     └─tidyselect:::as_indices_impl(x, vars, strict = strict)
   32.                       └─tidyselect:::chr_as_locations(x, vars)
   33.                         └─vctrs::vec_as_location(x, n = length(vars), names = vars)
   34.                           └─(function () ...
   35.                             └─vctrs:::stop_subscript_oob(...)
   36.                               └─vctrs:::stop_subscript(...)
  ── Error (test_perf_mod.R:221:3): workflow sets ────────────────────────────────
  Error in `coef(rsq_mod$stan)`: object 'rsq_mod' not found
  Backtrace:
      █
   1. ├─testthat::expect_equal(...) test_perf_mod.R:221:2
   2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. ├─base::colnames(coef(rsq_mod$stan)$id)
   5. │ └─base::is.data.frame(x)
   6. └─stats::coef(rsq_mod$stan)
  
  [ FAIL 2 | WARN 35 | SKIP 0 | PASS 108 ]
  Error: Test failures
  Execution halted