Running ‘spelling.R’ [0s/1s]
  Running ‘testthat.R’ [373s/211s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(marginaleffects)
  > library(margins)
  > 
  > test_check("marginaleffects")
  Starting 2 test processes
  [ FAIL 6 | WARN 3 | SKIP 17 | PASS 601 ]
  
  ══ Skipped tests ═══════════════════════════════════════════════════════════════
  • On CRAN (12)
  • cmdstanr cannot be loaded (1)
  • emmeans does not support `mblogit` (1)
  • gam: marginalmeans != emmeans (1)
  • modelbased cannot be loaded (1)
  • unsupported data argument in get_predicted.lrm (1)
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Failure (test-pkg-MASS.R:62:5): glm.nb: marginaleffects: vs. margins vs. emmeans ──
  mfx$dydx[mfx$contrast == "6 - 4"] (`actual`) not equal to em$estimate[em$contrast == "6 - 4"] (`expected`).
  
    `actual`: 0.775660098587198
  `expected`:                  
  ── Failure (test-pkg-MASS.R:63:5): glm.nb: marginaleffects: vs. margins vs. emmeans ──
  mfx$std.error[mfx$contrast == "6 - 4"] (`actual`) not equal to em$std.error[em$contrast == "6 - 4"] (`expected`).
  
    `actual`: 0.3469079306246
  `expected`:                
  ── Failure (test-pkg-MASS.R:64:5): glm.nb: marginaleffects: vs. margins vs. emmeans ──
  mfx$dydx[mfx$contrast == "8 - 4"] (`actual`) not equal to em$estimate[em$contrast == "8 - 4"] (`expected`).
  
    `actual`: 0.773619311811532
  `expected`:                  
  ── Failure (test-pkg-MASS.R:65:5): glm.nb: marginaleffects: vs. margins vs. emmeans ──
  mfx$std.error[mfx$contrast == "8 - 4"] (`actual`) not equal to em$std.error[em$contrast == "8 - 4"] (`expected`).
  
    `actual`: 0.406394478973747
  `expected`:                  
  ── Failure (test-pkg-betareg.R:44:5): predictions: no validity ─────────────────
  Class: predictions. Rows: 32. Columns: 8. type_col: TRUE. predicted_col: TRUE, se_col: FALSE
  ── Failure (test-pkg-betareg.R:46:5): predictions: no validity ─────────────────
  Class: predictions. Rows: 6. Columns: 7. type_col: TRUE. predicted_col: TRUE, se_col: FALSE
  
  [ FAIL 6 | WARN 3 | SKIP 17 | PASS 601 ]
  Error: Test failures
  Execution halted