Running ‘testthat.R’ [45s/72s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > #' @srrstats {G3.0} Floating point numbers are not compared for equality
  > #' @srrstats {G5.2, G5.2a, G5.2b, G5.3, RE7.2, RE7.3}
  > #'   Demonstrated by package tests.
  > #' @srrstats {G5.12} Instructions on how to run extended tests is provided in
  > #'   tests/README.md.
  > #' @srrstats {G5.5, G5.6b} Fixed and random seeds are used appropriately in
  > #'   tests.
  > library(testthat)
  > library(dynamite)
  > 
  > test_check("dynamite")
  [ FAIL 2 | WARN 0 | SKIP 40 | PASS 405 ]
  
  ══ Skipped tests (40) ══════════════════════════════════════════════════════════
  • Shrinkage feature removed at least for now. (2): 'test-edgecases.R:215:3',
    'test-extended.R:195:3'
  • run_extended_tests is not TRUE (34): 'test-cmdstanr.R:9:3',
    'test-cmdstanr.R:34:3', 'test-cmdstanr.R:52:3', 'test-cmdstanr.R:88:3',
    'test-cmdstanr.R:117:3', 'test-cmdstanr.R:164:3', 'test-extended.R:6:3',
    'test-extended.R:53:3', 'test-extended.R:115:3', 'test-extended.R:138:3',
    'test-extended.R:157:3', 'test-extended.R:224:3', 'test-grunfeld.R:8:3',
    'test-lfactor.R:167:3', 'test-lfactor.R:175:3', 'test-lfactor.R:183:3',
    'test-lfactor.R:191:3', 'test-random.R:9:3', 'test-random.R:97:3',
    'test-random.R:178:3', 'test-random.R:206:3', 'test-random.R:239:3',
    'test-recovery.R:16:3', 'test-recovery.R:39:3', 'test-recovery.R:57:3',
    'test-recovery.R:76:3', 'test-recovery.R:94:3', 'test-recovery.R:136:3',
    'test-recovery.R:159:3', 'test-recovery.R:186:3', 'test-recovery.R:251:3',
    'test-recovery.R:278:3', 'test-recovery.R:361:3', 'test-recovery.R:406:3'
  • run_scaling_tests is not TRUE (4): 'test-scaling.R:17:3',
    'test-scaling.R:57:3', 'test-scaling.R:98:3', 'test-scaling.R:138:3'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Failure ('test-predict.R:47:3'): prediction works ───────────────────────────
  `predict(gaussian_example_fit, type = "link", n_draws = 2)` threw an unexpected error.
  Message: argument "..7" is missing, with no default
  Class:   simpleError/error/condition
  Backtrace:
       ▆
    1. ├─testthat::expect_error(...) at test-predict.R:47:3
    2. │ └─testthat:::expect_condition_matching(...)
    3. │   └─testthat:::quasi_capture(...)
    4. │     ├─testthat (local) .capture(...)
    5. │     │ └─base::withCallingHandlers(...)
    6. │     └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    7. ├─stats::predict(gaussian_example_fit, type = "link", n_draws = 2)
    8. └─dynamite:::predict.dynamitefit(...)
    9.   └─dynamite:::initialize_predict(...)
   10.     └─dynamite:::predict_(...)
   11.       └─dynamite:::prepare_eval_envs(...)
   12.         └─dynamite:::prepare_eval_env_univariate(...)
   13.           └─dynamite:::generate_sim_call_univariate(...)
   14.             ├─base::paste0(...)
   15.             ├─dynamite:::ifelse_(...)
   16.             └─glue::glue(...)
   17.               └─glue::glue_data(...)
   18.                 └─base::lapply(...)
   19.                   └─glue (local) FUN(X[[i]], ...)
   20.                     ├─eval(call("force", as.symbol(paste0("..", x)))) %||% .null
   21.                     ├─base::eval(call("force", as.symbol(paste0("..", x))))
   22.                     │ └─base::eval(call("force", as.symbol(paste0("..", x))))
   23.                     └─base::force(..7)
  ── Failure ('test-predict.R:120:3'): no groups prediction works ────────────────
  `predict(gaussian_example_single_fit, type = "link", n_draws = 2)` threw an unexpected error.
  Message: argument "..7" is missing, with no default
  Class:   simpleError/error/condition
  Backtrace:
       ▆
    1. ├─testthat::expect_error(...) at test-predict.R:120:3
    2. │ └─testthat:::expect_condition_matching(...)
    3. │   └─testthat:::quasi_capture(...)
    4. │     ├─testthat (local) .capture(...)
    5. │     │ └─base::withCallingHandlers(...)
    6. │     └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    7. ├─stats::predict(gaussian_example_single_fit, type = "link", n_draws = 2)
    8. └─dynamite:::predict.dynamitefit(...)
    9.   └─dynamite:::initialize_predict(...)
   10.     └─dynamite:::predict_(...)
   11.       └─dynamite:::prepare_eval_envs(...)
   12.         └─dynamite:::prepare_eval_env_univariate(...)
   13.           └─dynamite:::generate_sim_call_univariate(...)
   14.             ├─base::paste0(...)
   15.             ├─dynamite:::ifelse_(...)
   16.             └─glue::glue(...)
   17.               └─glue::glue_data(...)
   18.                 └─base::lapply(...)
   19.                   └─glue (local) FUN(X[[i]], ...)
   20.                     ├─eval(call("force", as.symbol(paste0("..", x)))) %||% .null
   21.                     ├─base::eval(call("force", as.symbol(paste0("..", x))))
   22.                     │ └─base::eval(call("force", as.symbol(paste0("..", x))))
   23.                     └─base::force(..7)
  
  [ FAIL 2 | WARN 0 | SKIP 40 | PASS 405 ]
  Error: Test failures
  Execution halted