Running 'testthat.R' [32s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(ranger)
  > 
  > test_check("ranger")
  [ FAIL 10 | WARN 0 | SKIP 9 | PASS 668 ]
  
  ══ Skipped tests (9) ═══════════════════════════════════════════════════════════
  • GenABEL cannot be loaded (9): 'test_genabel.R:6:3', 'test_genabel.R:16:3',
    'test_genabel.R:26:3', 'test_genabel.R:36:3', 'test_genabel.R:46:3',
    'test_genabel.R:56:3', 'test_genabel.R:67:3', 'test_genabel.R:83:3',
    'test_importance_pvalues.R:105:3'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test_jackknife.R:39:3'): IJ standard error prediction working for regression ──
  Error: 'crossprod' is not an exported object from 'namespace:Matrix'
  Backtrace:
      ▆
   1. ├─stats::predict(rf, test, type = "se", se.method = "infjack") at test_jackknife.R:39:2
   2. └─ranger:::predict.ranger(rf, test, type = "se", se.method = "infjack")
   3.   ├─stats::predict(...)
   4.   └─ranger:::predict.ranger.forest(...)
   5.     └─ranger:::rInfJack(...)
  ── Error ('test_jackknife.R:50:3'): IJ standard error prediction working for probability ──
  Error: 'crossprod' is not an exported object from 'namespace:Matrix'
  Backtrace:
      ▆
   1. ├─stats::predict(rf, test, type = "se", se.method = "infjack") at test_jackknife.R:50:2
   2. └─ranger:::predict.ranger(rf, test, type = "se", se.method = "infjack")
   3.   ├─stats::predict(...)
   4.   └─ranger:::predict.ranger.forest(...)
   5.     └─base::apply(...)
   6.       └─ranger (local) FUN(array(newX[, i], d.call, dn.call), ...)
   7.         └─ranger:::rInfJack(x, inbag.counts)
  ── Error ('test_jackknife.R:88:3'): standard error prediction working for single testing observation ──
  Error: 'crossprod' is not an exported object from 'namespace:Matrix'
  Backtrace:
       ▆
    1. ├─testthat::expect_warning(...) at test_jackknife.R:88:2
    2. │ └─testthat:::quasi_capture(...)
    3. │   ├─testthat (local) .capture(...)
    4. │   │ └─base::withCallingHandlers(...)
    5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    6. ├─stats::predict(rf, test, type = "se", se.method = "infjack")
    7. └─ranger:::predict.ranger(rf, test, type = "se", se.method = "infjack")
    8.   ├─stats::predict(...)
    9.   └─ranger:::predict.ranger.forest(...)
   10.     └─ranger:::rInfJack(...)
  ── Error ('test_jackknife.R:100:3'): standard error response prediction is the same as response prediction ──
  Error: 'crossprod' is not an exported object from 'namespace:Matrix'
  Backtrace:
      ▆
   1. ├─stats::predict(rf_se, test, type = "se") at test_jackknife.R:100:2
   2. └─ranger:::predict.ranger(rf_se, test, type = "se")
   3.   ├─stats::predict(...)
   4.   └─ranger:::predict.ranger.forest(...)
   5.     └─ranger:::rInfJack(...)
  ── Error ('test_jackknife.R:122:3'): standard error response prediction is the same as response prediction, probability ──
  Error: 'crossprod' is not an exported object from 'namespace:Matrix'
  Backtrace:
      ▆
   1. ├─stats::predict(rf_se, test, type = "se", se.method = "infjack") at test_jackknife.R:122:2
   2. └─ranger:::predict.ranger(rf_se, test, type = "se", se.method = "infjack")
   3.   ├─stats::predict(...)
   4.   └─ranger:::predict.ranger.forest(...)
   5.     └─base::apply(...)
   6.       └─ranger (local) FUN(array(newX[, i], d.call, dn.call), ...)
   7.         └─ranger:::rInfJack(x, inbag.counts)
  ── Error ('test_jackknife.R:138:3'): Warning for few observations with IJ ──────
  Error: 'crossprod' is not an exported object from 'namespace:Matrix'
  Backtrace:
       ▆
    1. ├─testthat::expect_warning(...) at test_jackknife.R:138:2
    2. │ └─testthat:::quasi_capture(...)
    3. │   ├─testthat (local) .capture(...)
    4. │   │ └─base::withCallingHandlers(...)
    5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    6. ├─stats::predict(rf5, test, type = "se", se.method = "infjack")
    7. └─ranger:::predict.ranger(rf5, test, type = "se", se.method = "infjack")
    8.   ├─stats::predict(...)
    9.   └─ranger:::predict.ranger.forest(...)
   10.     └─base::apply(...)
   11.       └─ranger (local) FUN(array(newX[, i], d.call, dn.call), ...)
   12.         └─ranger:::rInfJack(x, inbag.counts)
  ── Error ('test_jackknife.R:160:3'): standard error is working for tree subsets, infjack ──
  Error: 'crossprod' is not an exported object from 'namespace:Matrix'
  Backtrace:
      ▆
   1. ├─stats::predict(...) at test_jackknife.R:160:2
   2. └─ranger:::predict.ranger(...)
   3.   ├─stats::predict(...)
   4.   └─ranger:::predict.ranger.forest(...)
   5.     └─ranger:::rInfJack(...)
  ── Error ('test_jackknife.R:170:3'): No error for se estimation for many observations ──
  Error: 'crossprod' is not an exported object from 'namespace:Matrix'
  Backtrace:
       ▆
    1. ├─testthat::expect_silent(predict(rf, dat, type = "se", se.method = "infjack")) at test_jackknife.R:170:2
    2. │ └─testthat:::quasi_capture(enquo(object), NULL, evaluate_promise)
    3. │   ├─testthat (local) .capture(...)
    4. │   │ ├─withr::with_output_sink(...)
    5. │   │ │ └─base::force(code)
    6. │   │ ├─base::withCallingHandlers(...)
    7. │   │ └─base::withVisible(code)
    8. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    9. ├─stats::predict(rf, dat, type = "se", se.method = "infjack")
   10. └─ranger:::predict.ranger(rf, dat, type = "se", se.method = "infjack")
   11.   ├─stats::predict(...)
   12.   └─ranger:::predict.ranger.forest(...)
   13.     └─ranger:::rInfJack(...)
  ── Error ('test_jackknife.R:184:3'): Standard error prediction working for single observation, regression ──
  Error: 'crossprod' is not an exported object from 'namespace:Matrix'
  Backtrace:
       ▆
    1. ├─testthat::expect_warning(predict(rf, test, type = "se", se.method = "infjack")) at test_jackknife.R:184:2
    2. │ └─testthat:::quasi_capture(...)
    3. │   ├─testthat (local) .capture(...)
    4. │   │ └─base::withCallingHandlers(...)
    5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    6. ├─stats::predict(rf, test, type = "se", se.method = "infjack")
    7. └─ranger:::predict.ranger(rf, test, type = "se", se.method = "infjack")
    8.   ├─stats::predict(...)
    9.   └─ranger:::predict.ranger.forest(...)
   10.     └─ranger:::rInfJack(...)
  ── Error ('test_jackknife.R:195:3'): Standard error prediction working for single observation, probability ──
  Error: 'crossprod' is not an exported object from 'namespace:Matrix'
  Backtrace:
       ▆
    1. ├─testthat::expect_warning(predict(rf, test, type = "se", se.method = "infjack")) at test_jackknife.R:195:2
    2. │ └─testthat:::quasi_capture(...)
    3. │   ├─testthat (local) .capture(...)
    4. │   │ └─base::withCallingHandlers(...)
    5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    6. ├─stats::predict(rf, test, type = "se", se.method = "infjack")
    7. └─ranger:::predict.ranger(rf, test, type = "se", se.method = "infjack")
    8.   ├─stats::predict(...)
    9.   └─ranger:::predict.ranger.forest(...)
   10.     └─base::apply(...)
   11.       └─ranger (local) FUN(array(newX[, i], d.call, dn.call), ...)
   12.         └─ranger:::rInfJack(x, inbag.counts)
  
  [ FAIL 10 | WARN 0 | SKIP 9 | PASS 668 ]
  Error: Test failures
  Execution halted