Running ‘spelling.R’ [0s/1s]
  Running ‘testthat.R’ [332s/283s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(marginaleffects)
  > library(margins)
  > 
  > test_check("marginaleffects")
  Starting 2 test processes
  [ FAIL 2 | WARN 1 | SKIP 28 | PASS 545 ]
  
  ══ Skipped tests ═══════════════════════════════════════════════════════════════
  • Installed insight is version 0.16.0; but 0.16.1 is required (1)
  • On CRAN (11)
  • cmdstanr cannot be loaded (1)
  • emmeans does not support (1)
  • gam: marginalmeans != emmeans (1)
  • https://github.com/easystats/insight/issues/441 (1)
  • modelbased cannot be loaded (1)
  • unsupported data argument in get_predicted.lrm (1)
  • works interactively (10)
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error (test-marginalmeans.R:48:5): marginalmeans vs. emmeans: poisson link or response ──
  Error in `regrid(result, transform = regrid, sigma = sigma, ...)`: formal argument "transform" matched by multiple actual arguments
  Backtrace:
      ▆
   1. ├─generics::tidy(emmeans(mod, specs = "cyl", transform = "response")) at test-marginalmeans.R:48:4
   2. └─emmeans::emmeans(mod, specs = "cyl", transform = "response")
   3.   ├─base::do.call(ref_grid, args)
   4.   └─emmeans `<fn>`(object = `<glm>`, transform = "response", wt.nuis = "equal")
  ── Error (test-pkg-stats.R:117:5): glm: marginalmeans vs. emmeans ──────────────
  Error in `regrid(result, transform = regrid, sigma = sigma, ...)`: formal argument "transform" matched by multiple actual arguments
  Backtrace:
      ▆
   1. ├─generics::tidy(emmeans::emmeans(mod, specs = "MainCity", transform = "response")) at test-pkg-stats.R:117:4
   2. └─emmeans::emmeans(mod, specs = "MainCity", transform = "response")
   3.   ├─base::do.call(ref_grid, args)
   4.   └─emmeans `<fn>`(object = `<glm>`, transform = "response", wt.nuis = "equal")
  
  [ FAIL 2 | WARN 1 | SKIP 28 | PASS 545 ]
  Error: Test failures
  Execution halted