Running ‘testthat.R’ [17s/25s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(tidyposterior)
  > 
  > test_check("tidyposterior")
  
  Attaching package: 'rsample'
  
  The following object is masked from 'package:testthat':
  
      matches
  
  
  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.066476 seconds (Warm-up)
  Chain 1:                0.080649 seconds (Sampling)
  Chain 1:                0.147125 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.073137 seconds (Warm-up)
  Chain 2:                0.077426 seconds (Sampling)
  Chain 2:                0.150563 seconds (Total)
  Chain 2: 
  
  Attaching package: 'dplyr'
  
  The following object is masked from 'package:testthat':
  
      matches
  
  The following objects are masked from 'package:stats':
  
      filter, lag
  
  The following objects are masked from 'package:base':
  
      intersect, setdiff, setequal, union
  
  For binary classification, the first factor level is assumed to be the event.
  Use the argument `event_level = "second"` to alter this as needed.
  
  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.034215 seconds (Warm-up)
  Chain 1:                0.04068 seconds (Sampling)
  Chain 1:                0.074895 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.100003 seconds (Warm-up)
  Chain 2:                0.076532 seconds (Sampling)
  Chain 2:                0.176535 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.018646 seconds (Warm-up)
  Chain 1:                0.016391 seconds (Sampling)
  Chain 1:                0.035037 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.017965 seconds (Warm-up)
  Chain 2:                0.018868 seconds (Sampling)
  Chain 2:                0.036833 seconds (Total)
  Chain 2: 
  [ FAIL 2 | WARN 32 | SKIP 5 | PASS 97 ]
  
  ══ Skipped tests ═══════════════════════════════════════════════════════════════
  • On CRAN (5)
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Failure ('test_perf_mod.R:234:3'): workflow sets ────────────────────────────
  `rsq_mod <- perf_mod(wset, seed = 3, refresh = 0, metric = "rsq")` threw an unexpected error.
  Message: Can't find `fns` in environment.
  Class:   rlang_error/error/condition
  Backtrace:
       ▆
    1. ├─testthat::expect_error(...) at test_perf_mod.R:234:2
    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. ├─tidyposterior::perf_mod(wset, seed = 3, refresh = 0, metric = "rsq")
    8. └─tidyposterior:::perf_mod.workflow_set(...)
    9.   └─tune::metrics_info(metric_info)
   10.     └─rlang::env_get(environment(x), "fns")
   11.       └─rlang:::stop_env_get_missing(nm)
   12.         └─rlang::abort(msg, call = caller_env())
  ── Error ('test_perf_mod.R:238:3'): workflow sets ──────────────────────────────
  Error in `eval(code, test_env)`: object 'rsq_mod' not found
  Backtrace:
      ▆
   1. ├─testthat::expect_equal(...) at test_perf_mod.R:238: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 32 | SKIP 5 | PASS 97 ]
  Error: Test failures
  Execution halted