Running ‘testthat.R’ [40s/149s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(butcher)
  > 
  > test_check("butcher")
  Saving _problems/test-xrf-12.R
  Saving _problems/test-xrf-25.R
  Saving _problems/test-xrf-40.R
  Saving _problems/test-xrf-58.R
  [ FAIL 4 | WARN 16 | SKIP 34 | PASS 197 ]
  
  ══ Skipped tests (34) ══════════════════════════════════════════════════════════
  • On CRAN (34): 'test-c5.R:2:3', 'test-earth.R:2:3', 'test-earth.R:31:3',
    'test-elnet.R:2:3', 'test-flexsurvreg.R:2:3', 'test-flexsurvreg.R:15:3',
    'test-flexsurvreg.R:43:3', 'test-gausspr.R:2:3', 'test-glmnet.R:2:3',
    'test-kknn.R:2:3', 'test-klaR.R:2:3', 'test-klaR.R:17:3', 'test-ksvm.R:2:3',
    'test-mda.R:2:3', 'test-mda.R:23:3', 'test-mda.R:95:3',
    'test-mixOmics.R:2:3', 'test-mixOmics.R:21:3', 'test-mixOmics.R:38:3',
    'test-multnet.R:2:3', 'test-nnet.R:2:3', 'test-randomForest.R:2:3',
    'test-rpart.R:2:3', 'test-rpart.R:18:3', 'test-sclass.R:2:3',
    'test-survreg.R:2:3', 'test-survreg.penal.R:2:3', 'test-train.R:2:3',
    'test-train.R:42:3', 'test-train.recipe.R:9:3', 'test-ui.R:1:1',
    'test-weigh.R:1:1', 'test-xgb.R:6:3', 'test-xgb.R:34:3'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Failure ('test-xrf.R:12:3'): xrf + axe_call() works ─────────────────────────
  Expected `x$xgb$call` to equal `rlang::expr(dummy_call())`.
  Differences:
  `actual` is NULL
  `expected` is a call
  
  ── Error ('test-xrf.R:25:3'): xrf + axe_env() works ────────────────────────────
  Error in `x$callbacks <- purrr::map(x$callbacks, function(x) as.function(c(formals(x), body(x)), env = rlang::base_env()))`: ALTLIST classes must provide a Set_elt method [class: XGBAltrepPointerClass, pkg: xgboost]
  Backtrace:
      ▆
   1. ├─butcher::axe_env(res) at test-xrf.R:25:3
   2. └─butcher:::axe_env.xrf(res)
   3.   ├─butcher::axe_env(res$xgb, ...)
   4.   └─butcher:::axe_env.xgb.Booster(res$xgb, ...)
  ── Error ('test-xrf.R:40:3'): xrf + butcher() works ────────────────────────────
  Error in `x$callbacks <- purrr::map(x$callbacks, function(x) as.function(c(formals(x), body(x)), env = rlang::base_env()))`: ALTLIST classes must provide a Set_elt method [class: XGBAltrepPointerClass, pkg: xgboost]
  Backtrace:
      ▆
   1. └─butcher::butcher(res) at test-xrf.R:40:3
   2.   ├─butcher::axe_env(x, verbose = FALSE, ...)
   3.   └─butcher:::axe_env.xrf(x, verbose = FALSE, ...)
   4.     ├─butcher::axe_env(res$xgb, ...)
   5.     └─butcher:::axe_env.xgb.Booster(res$xgb, ...)
  ── Error ('test-xrf.R:58:3'): xrf + predict() works ────────────────────────────
  Error in `x$callbacks <- purrr::map(x$callbacks, function(x) as.function(c(formals(x), body(x)), env = rlang::base_env()))`: ALTLIST classes must provide a Set_elt method [class: XGBAltrepPointerClass, pkg: xgboost]
  Backtrace:
      ▆
   1. └─butcher::butcher(res) at test-xrf.R:58:3
   2.   ├─butcher::axe_env(x, verbose = FALSE, ...)
   3.   └─butcher:::axe_env.xrf(x, verbose = FALSE, ...)
   4.     ├─butcher::axe_env(res$xgb, ...)
   5.     └─butcher:::axe_env.xgb.Booster(res$xgb, ...)
  
  [ FAIL 4 | WARN 16 | SKIP 34 | PASS 197 ]
  Error:
  ! Test failures.
  Execution halted