Running ‘testthat.R’ [397s/532s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(mcp)
  > 
  > test_check("mcp")
  [ FAIL 7 | WARN 1 | SKIP 6 | PASS 3619 ]
  
  ══ Skipped tests ═══════════════════════════════════════════════════════════════
  • This time-consuming test is only run locally before release. (6)
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Failure (helper-runs.R:325:7): good_poisson:
      y ~ 1 ──────────────────────
  `is_expected` is not TRUE
  
  `actual`:   FALSE
  `expected`: TRUE 
  Backtrace:
      ▆
   1. └─mcp:::test_runs(model, ...) at tests/testthat/helper-runs.R:325:6
   2.   └─mcp:::test_plot(fit, varying_cols) at tests/testthat/helper-runs.R:111:6
   3.     └─testthat::expect_true(is_expected) at tests/testthat/helper-runs.R:163:4
  ── Failure (helper-runs.R:325:7): good_poisson:
      y ~ 1 ──────────────────────
  fit$family$family != "poisson" | ... is not TRUE
  
  `actual`:   FALSE
  `expected`: TRUE 
  Backtrace:
      ▆
   1. └─mcp:::test_runs(model, ...) at tests/testthat/helper-runs.R:325:6
   2.   └─mcp:::test_pp_eval(fit) at tests/testthat/helper-runs.R:113:6
   3.     └─mcp:::test_pp_eval_func(fit, predict) at tests/testthat/helper-runs.R:241:2
   4.       └─testthat::expect_true(...) at tests/testthat/helper-runs.R:228:4
  ── Failure (helper-runs.R:325:7): good_poisson:
      y ~ 1 + x, y ~ 1 ~ rel(1) + rel(x), rel(1) ~ 0 ──
  fit$family$family != "poisson" | ... is not TRUE
  
  `actual`:   FALSE
  `expected`: TRUE 
  Backtrace:
      ▆
   1. └─mcp:::test_runs(model, ...) at tests/testthat/helper-runs.R:325:6
   2.   └─mcp:::test_pp_eval(fit) at tests/testthat/helper-runs.R:113:6
   3.     └─mcp:::test_pp_eval_func(fit, predict) at tests/testthat/helper-runs.R:241:2
   4.       └─testthat::expect_true(...) at tests/testthat/helper-runs.R:228:4
  ── Failure (helper-runs.R:325:7): good_poisson:
      y ~ 1, 1 + (1 | id) ~ 1 ────
  `is_expected` is not TRUE
  
  `actual`:   FALSE
  `expected`: TRUE 
  Backtrace:
      ▆
   1. └─mcp:::test_runs(model, ...) at tests/testthat/helper-runs.R:325:6
   2.   └─mcp:::test_plot(fit, varying_cols) at tests/testthat/helper-runs.R:111:6
   3.     └─testthat::expect_true(is_expected) at tests/testthat/helper-runs.R:163:4
  ── Failure (helper-runs.R:325:7): good_poisson:
      y ~ 1, 1 + (1 | id) ~ 1 ────
  fit$family$family != "poisson" | ... is not TRUE
  
  `actual`:   FALSE
  `expected`: TRUE 
  Backtrace:
      ▆
   1. └─mcp:::test_runs(model, ...) at tests/testthat/helper-runs.R:325:6
   2.   └─mcp:::test_pp_eval(fit) at tests/testthat/helper-runs.R:113:6
   3.     └─mcp:::test_pp_eval_func(fit, predict) at tests/testthat/helper-runs.R:241:2
   4.       └─testthat::expect_true(...) at tests/testthat/helper-runs.R:228:4
  ── Failure (helper-runs.R:325:7): good_poisson:
      y ~ 1 + ar(1), ~1 + x + ar(2, 1 + x + I(x^3)) ──
  `is_expected` is not TRUE
  
  `actual`:   FALSE
  `expected`: TRUE 
  Backtrace:
      ▆
   1. └─mcp:::test_runs(model, ...) at tests/testthat/helper-runs.R:325:6
   2.   └─mcp:::test_plot(fit, varying_cols) at tests/testthat/helper-runs.R:111:6
   3.     └─testthat::expect_true(is_expected) at tests/testthat/helper-runs.R:163:4
  ── Failure (helper-runs.R:325:7): good_poisson:
      y ~ 1 + ar(1), ~1 + x + ar(2, 1 + x + I(x^3)) ──
  fit$family$family != "poisson" | ... is not TRUE
  
  `actual`:   FALSE
  `expected`: TRUE 
  Backtrace:
      ▆
   1. └─mcp:::test_runs(model, ...) at tests/testthat/helper-runs.R:325:6
   2.   └─mcp:::test_pp_eval(fit) at tests/testthat/helper-runs.R:113:6
   3.     └─mcp:::test_pp_eval_func(fit, predict) at tests/testthat/helper-runs.R:241:2
   4.       └─testthat::expect_true(...) at tests/testthat/helper-runs.R:228:4
  
  [ FAIL 7 | WARN 1 | SKIP 6 | PASS 3619 ]
  Error: Test failures
  Execution halted