Running ‘testthat.R’ [55s/131s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > # This file is part of the standard setup for testthat.
  > # It is recommended that you do not modify it.
  > #
  > # Where should you do additional test configuration?
  > # Learn more about the roles of various files in:
  > # * https://r-pkgs.org/tests.html
  > # * https://testthat.r-lib.org/reference/test_package.html#special-files
  > 
  > library(testthat)
  > library(clarify)
  > 
  > test_check("clarify")
  [ FAIL 18 | WARN 28 | SKIP 4 | PASS 3738 ]
  
  ══ Skipped tests ═══════════════════════════════════════════════════════════════
  • 'estimatr' has problems with model.frame.iv_robust(), which causes an error with insight::get_data(). (1)
  • On CRAN (2)
  • predict() is bugged for glmRob() (1)
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-misim.R:184'): sim_ame() works with misim() and glm() ──────────
  Error in `sim_ame(s, "treat", verbose = FALSE)`: `FUN` failed to run on an initial check with the following error:
  'x' and 'w' must have the same length.
  Backtrace:
      ▆
   1. └─clarify::sim_ame(s, "treat", verbose = FALSE) at test-misim.R:184:2
   2.   └─clarify::sim_apply(sim, FUN = FUN, verbose = verbose, cl = cl)
   3.     └─clarify:::.err(...)
   4.       └─chk::err(..., call = pkg_caller_call(start = 2))
   5.         └─rlang::abort(msg, class = .subclass, !!!args[named], call = call)
  ── Error ('test-sim_ame.R:22'): sim_ame() works with lm() ──────────────────────
  Error in `sim_ame(s, "treat", verbose = FALSE)`: `FUN` failed to run on an initial check with the following error:
  'x' and 'w' must have the same length.
  Backtrace:
      ▆
   1. └─clarify::sim_ame(s, "treat", verbose = FALSE) at test-sim_ame.R:22:2
   2.   └─clarify::sim_apply(sim, FUN = FUN, verbose = verbose, cl = cl)
   3.     └─clarify:::.err(...)
   4.       └─chk::err(..., call = pkg_caller_call(start = 2))
   5.         └─rlang::abort(msg, class = .subclass, !!!args[named], call = call)
  ── Error ('test-sim_ame.R:100'): sim_ame() works with glm() ────────────────────
  Error in `sim_ame(s, "treat", verbose = FALSE)`: `FUN` failed to run on an initial check with the following error:
  'x' and 'w' must have the same length.
  Backtrace:
      ▆
   1. └─clarify::sim_ame(s, "treat", verbose = FALSE) at test-sim_ame.R:100:2
   2.   └─clarify::sim_apply(sim, FUN = FUN, verbose = verbose, cl = cl)
   3.     └─clarify:::.err(...)
   4.       └─chk::err(..., call = pkg_caller_call(start = 2))
   5.         └─rlang::abort(msg, class = .subclass, !!!args[named], call = call)
  ── Error ('test-sim_ame.R:178'): sim_ame() works with MASS::glm.nb() ───────────
  Error in `sim_ame(s, "treat", verbose = FALSE)`: `FUN` failed to run on an initial check with the following error:
  'x' and 'w' must have the same length.
  Backtrace:
      ▆
   1. └─clarify::sim_ame(s, "treat", verbose = FALSE) at test-sim_ame.R:178:2
   2.   └─clarify::sim_apply(sim, FUN = FUN, verbose = verbose, cl = cl)
   3.     └─clarify:::.err(...)
   4.       └─chk::err(..., call = pkg_caller_call(start = 2))
   5.         └─rlang::abort(msg, class = .subclass, !!!args[named], call = call)
  ── Error ('test-sim_ame.R:256'): sim_ame() works with betareg::betareg() ───────
  Error in `sim_ame(s, "treat", verbose = FALSE)`: `FUN` failed to run on an initial check with the following error:
  'x' and 'w' must have the same length.
  Backtrace:
      ▆
   1. └─clarify::sim_ame(s, "treat", verbose = FALSE) at test-sim_ame.R:256:2
   2.   └─clarify::sim_apply(sim, FUN = FUN, verbose = verbose, cl = cl)
   3.     └─clarify:::.err(...)
   4.       └─chk::err(..., call = pkg_caller_call(start = 2))
   5.         └─rlang::abort(msg, class = .subclass, !!!args[named], call = call)
  ── Error ('test-sim_ame.R:334'): sim_ame() works with survey::svyglm() ─────────
  Error in `sim_ame(s, "treat", verbose = FALSE)`: `FUN` failed to run on an initial check with the following error:
  'x' and 'w' must have the same length.
  Backtrace:
      ▆
   1. └─clarify::sim_ame(s, "treat", verbose = FALSE) at test-sim_ame.R:334:2
   2.   └─clarify::sim_apply(sim, FUN = FUN, verbose = verbose, cl = cl)
   3.     └─clarify:::.err(...)
   4.       └─chk::err(..., call = pkg_caller_call(start = 2))
   5.         └─rlang::abort(msg, class = .subclass, !!!args[named], call = call)
  ── Error ('test-sim_ame.R:412'): sim_ame() works with estimatr::lm_robust() ────
  Error in `sim_ame(s, "treat", verbose = FALSE)`: `FUN` failed to run on an initial check with the following error:
  'x' and 'w' must have the same length.
  Backtrace:
      ▆
   1. └─clarify::sim_ame(s, "treat", verbose = FALSE) at test-sim_ame.R:412:2
   2.   └─clarify::sim_apply(sim, FUN = FUN, verbose = verbose, cl = cl)
   3.     └─clarify:::.err(...)
   4.       └─chk::err(..., call = pkg_caller_call(start = 2))
   5.         └─rlang::abort(msg, class = .subclass, !!!args[named], call = call)
  ── Error ('test-sim_ame.R:569'): sim_ame() works with fixest::feols() ──────────
  Error in `sim_ame(s, "treat", verbose = FALSE)`: `FUN` failed to run on an initial check with the following error:
  'x' and 'w' must have the same length.
  Backtrace:
      ▆
   1. └─clarify::sim_ame(s, "treat", verbose = FALSE) at test-sim_ame.R:569:2
   2.   └─clarify::sim_apply(sim, FUN = FUN, verbose = verbose, cl = cl)
   3.     └─clarify:::.err(...)
   4.       └─chk::err(..., call = pkg_caller_call(start = 2))
   5.         └─rlang::abort(msg, class = .subclass, !!!args[named], call = call)
  ── Error ('test-sim_ame.R:648'): sim_ame() works with fixest::feglm() ──────────
  Error in `sim_ame(s, "treat", verbose = FALSE)`: `FUN` failed to run on an initial check with the following error:
  'x' and 'w' must have the same length.
  Backtrace:
      ▆
   1. └─clarify::sim_ame(s, "treat", verbose = FALSE) at test-sim_ame.R:648:2
   2.   └─clarify::sim_apply(sim, FUN = FUN, verbose = verbose, cl = cl)
   3.     └─clarify:::.err(...)
   4.       └─chk::err(..., call = pkg_caller_call(start = 2))
   5.         └─rlang::abort(msg, class = .subclass, !!!args[named], call = call)
  ── Error ('test-sim_ame.R:726'): sim_ame() works with logistf::logistf() ───────
  Error in `sim_ame(s, "treat", verbose = FALSE)`: `FUN` failed to run on an initial check with the following error:
  'x' and 'w' must have the same length.
  Backtrace:
      ▆
   1. └─clarify::sim_ame(s, "treat", verbose = FALSE) at test-sim_ame.R:726:2
   2.   └─clarify::sim_apply(sim, FUN = FUN, verbose = verbose, cl = cl)
   3.     └─clarify:::.err(...)
   4.       └─chk::err(..., call = pkg_caller_call(start = 2))
   5.         └─rlang::abort(msg, class = .subclass, !!!args[named], call = call)
  ── Error ('test-sim_ame.R:808'): sim_ame() works with geepack::geeglm() ────────
  Error in `sim_ame(s, "treat", verbose = FALSE)`: `FUN` failed to run on an initial check with the following error:
  'x' and 'w' must have the same length.
  Backtrace:
      ▆
   1. └─clarify::sim_ame(s, "treat", verbose = FALSE) at test-sim_ame.R:808:2
   2.   └─clarify::sim_apply(sim, FUN = FUN, verbose = verbose, cl = cl)
   3.     └─clarify:::.err(...)
   4.       └─chk::err(..., call = pkg_caller_call(start = 2))
   5.         └─rlang::abort(msg, class = .subclass, !!!args[named], call = call)
  ── Error ('test-sim_ame.R:892'): sim_ame() works with rms::ols() ───────────────
  Error in `sim_ame(s, "treat", verbose = FALSE)`: `FUN` failed to run on an initial check with the following error:
  'x' and 'w' must have the same length.
  Backtrace:
      ▆
   1. └─clarify::sim_ame(s, "treat", verbose = FALSE) at test-sim_ame.R:892:2
   2.   └─clarify::sim_apply(sim, FUN = FUN, verbose = verbose, cl = cl)
   3.     └─clarify:::.err(...)
   4.       └─chk::err(..., call = pkg_caller_call(start = 2))
   5.         └─rlang::abort(msg, class = .subclass, !!!args[named], call = call)
  ── Error ('test-sim_ame.R:978'): sim_ame() works with rms::lrm() ───────────────
  Error in `sim_ame(s, "treat", verbose = FALSE)`: `FUN` failed to run on an initial check with the following error:
  'x' and 'w' must have the same length.
  Backtrace:
      ▆
   1. └─clarify::sim_ame(s, "treat", verbose = FALSE) at test-sim_ame.R:978:2
   2.   └─clarify::sim_apply(sim, FUN = FUN, verbose = verbose, cl = cl)
   3.     └─clarify:::.err(...)
   4.       └─chk::err(..., call = pkg_caller_call(start = 2))
   5.         └─rlang::abort(msg, class = .subclass, !!!args[named], call = call)
  ── Error ('test-sim_ame.R:1058'): sim_ame() works with robustbase::lmrob() ─────
  Error in `sim_ame(s, "treat", verbose = FALSE)`: `FUN` failed to run on an initial check with the following error:
  'x' and 'w' must have the same length.
  Backtrace:
      ▆
   1. └─clarify::sim_ame(s, "treat", verbose = FALSE) at test-sim_ame.R:1058:2
   2.   └─clarify::sim_apply(sim, FUN = FUN, verbose = verbose, cl = cl)
   3.     └─clarify:::.err(...)
   4.       └─chk::err(..., call = pkg_caller_call(start = 2))
   5.         └─rlang::abort(msg, class = .subclass, !!!args[named], call = call)
  ── Error ('test-sim_ame.R:1137'): sim_ame() works with robustbase::glmrob() ────
  Error in `sim_ame(s, "treat", verbose = FALSE)`: `FUN` failed to run on an initial check with the following error:
  'x' and 'w' must have the same length.
  Backtrace:
      ▆
   1. └─clarify::sim_ame(s, "treat", verbose = FALSE) at test-sim_ame.R:1137:2
   2.   └─clarify::sim_apply(sim, FUN = FUN, verbose = verbose, cl = cl)
   3.     └─clarify:::.err(...)
   4.       └─chk::err(..., call = pkg_caller_call(start = 2))
   5.         └─rlang::abort(msg, class = .subclass, !!!args[named], call = call)
  ── Error ('test-sim_ame.R:1215'): sim_ame() works with robust::lmRob() ─────────
  Error in `sim_ame(s, "treat", verbose = FALSE)`: `FUN` failed to run on an initial check with the following error:
  'x' and 'w' must have the same length.
  Backtrace:
      ▆
   1. └─clarify::sim_ame(s, "treat", verbose = FALSE) at test-sim_ame.R:1215:2
   2.   └─clarify::sim_apply(sim, FUN = FUN, verbose = verbose, cl = cl)
   3.     └─clarify:::.err(...)
   4.       └─chk::err(..., call = pkg_caller_call(start = 2))
   5.         └─rlang::abort(msg, class = .subclass, !!!args[named], call = call)
  ── Error ('test-sim_ame.R:1374'): sim_ame() works with AER::tobit() ────────────
  Error in `sim_ame(s, "treat", verbose = FALSE)`: `FUN` failed to run on an initial check with the following error:
  'x' and 'w' must have the same length.
  Backtrace:
      ▆
   1. └─clarify::sim_ame(s, "treat", verbose = FALSE) at test-sim_ame.R:1374:2
   2.   └─clarify::sim_apply(sim, FUN = FUN, verbose = verbose, cl = cl)
   3.     └─clarify:::.err(...)
   4.       └─chk::err(..., call = pkg_caller_call(start = 2))
   5.         └─rlang::abort(msg, class = .subclass, !!!args[named], call = call)
  ── Error ('test-sim_ame.R:1452'): sim_ame() works with ivreg::ivreg() ──────────
  Error in `sim_ame(s, "treat", verbose = FALSE)`: `FUN` failed to run on an initial check with the following error:
  'x' and 'w' must have the same length.
  Backtrace:
      ▆
   1. └─clarify::sim_ame(s, "treat", verbose = FALSE) at test-sim_ame.R:1452:2
   2.   └─clarify::sim_apply(sim, FUN = FUN, verbose = verbose, cl = cl)
   3.     └─clarify:::.err(...)
   4.       └─chk::err(..., call = pkg_caller_call(start = 2))
   5.         └─rlang::abort(msg, class = .subclass, !!!args[named], call = call)
  
  [ FAIL 18 | WARN 28 | SKIP 4 | PASS 3738 ]
  Error: Test failures
  Execution halted