Running 'testthat.R' [21s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(butcher)
  > 
  > test_check("butcher")
  Saving _problems/test-bart-5.R
  Saving _problems/test-bart-16.R
  Saving _problems/test-bart-26.R
  Saving _problems/test-bart-39.R
  Saving _problems/test-bart-55.R
  1 package (dimRed) is needed for this step but is not installed.
  To install run: `install.packages("dimRed")`
  [ FAIL 5 | WARN 0 | SKIP 44 | PASS 198 ]
  
  ══ Skipped tests (44) ══════════════════════════════════════════════════════════
  • On CRAN (43): '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:18:3',
    'test-flexsurvreg.R:56:3', 'test-gausspr.R:2:3', 'test-glmnet.R:2:3',
    'test-kknn.R:2:3', 'test-klaR.R:2:3', 'test-klaR.R:16:3', 'test-ksvm.R:2:3',
    'test-mda.R:2:3', 'test-mda.R:24:3', 'test-mda.R:98:3',
    'test-mixOmics.R:2:3', 'test-mixOmics.R:21:3', 'test-mixOmics.R:40:3',
    'test-multnet.R:2:3', 'test-new.R:1:1', 'test-nnet.R:2:3',
    'test-randomForest.R:2:3', 'test-rpart.R:2:3', 'test-rpart.R:22:3',
    'test-rsample.R:1:1', 'test-rsample.R:21:1', 'test-rsample.R:34:1',
    'test-rsample.R:55:1', 'test-rsample.R:72:1', 'test-sclass.R:2:3',
    'test-survreg.R:2:3', 'test-survreg.penal.R:2:3', 'test-tabnet_fit.R:2:3',
    'test-tabnet_fit.R:20:3', 'test-tabnet_fit.R:37:3', 'test-train.R:2:3',
    'test-train.R:44: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:51:3'
  • {mixOmics} is not installed (1): 'test-recipe.R:454:3'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-bart.R:5:3'): dbarts + axe_call() works ────────────────────────
  Error in `parse(text = deparse(RNGkind)[-1L])`: <text>:1:22: unexpected ')'
  1:     binom.kind = NULL)
                           ^
  Backtrace:
       ▆
    1. └─dbarts::bart(mtcars[, 2:5], mtcars[, 1], verbose = FALSE) at test-bart.R:5:3
    2.   └─dbarts::dbartsControl(...)
    3.     └─methods::new(...)
    4.       ├─methods::initialize(value, ...)
    5.       └─dbarts (local) initialize(value, ...)
    6.         ├─methods::callNextMethod()
    7.         └─methods (local) .nextMethod(.Object = .Object, ... = ...)
    8.           └─methods::validObject(.Object)
    9.             ├─methods (local) anyStrings(validityMethod(object))
   10.             │ └─base::isTRUE(x)
   11.             └─dbarts (local) validityMethod(object)
   12.               └─base::parse(text = deparse(RNGkind)[-1L])
  ── Error ('test-bart.R:11:3'): dbarts + axe_fitted() works ─────────────────────
  Error in `parse(text = deparse(RNGkind)[-1L])`: <text>:1:22: unexpected ')'
  1:     binom.kind = NULL)
                           ^
  Backtrace:
       ▆
    1. └─dbarts::bart(mtcars[, 2:5], mtcars[, 1], mtcars[1:5, 2:5], verbose = FALSE) at test-bart.R:11:3
    2.   └─dbarts::dbartsControl(...)
    3.     └─methods::new(...)
    4.       ├─methods::initialize(value, ...)
    5.       └─dbarts (local) initialize(value, ...)
    6.         ├─methods::callNextMethod()
    7.         └─methods (local) .nextMethod(.Object = .Object, ... = ...)
    8.           └─methods::validObject(.Object)
    9.             ├─methods (local) anyStrings(validityMethod(object))
   10.             │ └─base::isTRUE(x)
   11.             └─dbarts (local) validityMethod(object)
   12.               └─base::parse(text = deparse(RNGkind)[-1L])
  ── Error ('test-bart.R:26:3'): dbarts + butcher() works ────────────────────────
  Error in `parse(text = deparse(RNGkind)[-1L])`: <text>:1:22: unexpected ')'
  1:     binom.kind = NULL)
                           ^
  Backtrace:
       ▆
    1. └─dbarts::bart(mtcars[, 2:5], mtcars[, 1], verbose = FALSE) at test-bart.R:26:3
    2.   └─dbarts::dbartsControl(...)
    3.     └─methods::new(...)
    4.       ├─methods::initialize(value, ...)
    5.       └─dbarts (local) initialize(value, ...)
    6.         ├─methods::callNextMethod()
    7.         └─methods (local) .nextMethod(.Object = .Object, ... = ...)
    8.           └─methods::validObject(.Object)
    9.             ├─methods (local) anyStrings(validityMethod(object))
   10.             │ └─base::isTRUE(x)
   11.             └─dbarts (local) validityMethod(object)
   12.               └─base::parse(text = deparse(RNGkind)[-1L])
  ── Error ('test-bart.R:34:3'): dbarts + predict() works ────────────────────────
  Error in `parse(text = deparse(RNGkind)[-1L])`: <text>:1:22: unexpected ')'
  1:     binom.kind = NULL)
                           ^
  Backtrace:
       ▆
    1. └─dbarts::bart(mtcars[, 2:5], mtcars[, 1], verbose = FALSE, keeptrees = TRUE) at test-bart.R:34:3
    2.   └─dbarts::dbartsControl(...)
    3.     └─methods::new(...)
    4.       ├─methods::initialize(value, ...)
    5.       └─dbarts (local) initialize(value, ...)
    6.         ├─methods::callNextMethod()
    7.         └─methods (local) .nextMethod(.Object = .Object, ... = ...)
    8.           └─methods::validObject(.Object)
    9.             ├─methods (local) anyStrings(validityMethod(object))
   10.             │ └─base::isTRUE(x)
   11.             └─dbarts (local) validityMethod(object)
   12.               └─base::parse(text = deparse(RNGkind)[-1L])
  ── Error ('test-bart.R:55:3'): bart() from parsnip + predict() works ───────────
  Error in `parse(text = deparse(RNGkind)[-1L])`: <text>:1:22: unexpected ')'
  1:     binom.kind = NULL)
                           ^
  Backtrace:
       ▆
    1. ├─generics::fit(spec, mpg ~ ., mtcars) at test-bart.R:55:3
    2. ├─parsnip::fit.model_spec(spec, mpg ~ ., mtcars)
    3. │ └─parsnip:::form_xy(...)
    4. │   └─parsnip:::xy_xy(...)
    5. │     └─parsnip:::eval_mod(...)
    6. │       └─rlang::eval_tidy(e, env = envir, ...)
    7. └─dbarts::bart(...)
    8.   └─dbarts::dbartsControl(...)
    9.     └─methods::new(...)
   10.       ├─methods::initialize(value, ...)
   11.       └─dbarts (local) initialize(value, ...)
   12.         ├─methods::callNextMethod()
   13.         └─methods (local) .nextMethod(.Object = .Object, ... = ...)
   14.           └─methods::validObject(.Object)
   15.             ├─methods (local) anyStrings(validityMethod(object))
   16.             │ └─base::isTRUE(x)
   17.             └─dbarts (local) validityMethod(object)
   18.               └─base::parse(text = deparse(RNGkind)[-1L])
  
  [ FAIL 5 | WARN 0 | SKIP 44 | PASS 198 ]
  Error:
  ! Test failures.
  Execution halted