Running ‘testthat.R’ [170s/78s]
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/testing-design.html#sec-tests-files-overview
  > # * https://testthat.r-lib.org/articles/special-files.html
  > 
  > library(testthat)
  > library(xplainfi)
  > 
  > test_check("xplainfi")
  Starting 2 test processes.
  Saving _problems/test-WVIM-125.R
  [ FAIL 1 | WARN 1 | SKIP 7 | PASS 1795 ]
  
  ══ Skipped tests (7) ═══════════════════════════════════════════════════════════
  • On CRAN (6): 'test-ConditionalSAGE.R:51:2', 'test-ConditionalSAGE.R:139:2',
    'test-ConditionalSAGE.R:157:2', 'test-ConditionalSAGE.R:199:2',
    'test-ConditionalSAGE.R:261:2', 'test-MarginalSAGE.R:230:2'
  • as.numeric(R.version$minor) >= 6 is TRUE (1): 'test-bibentries.R:3:2'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-WVIM.R:125:2'): LOCO basic workflow with classification ────────
  <subscriptOutOfBoundsError/error/condition>
  Error in `frame$yval2[where, 1L + nclass + 1L:nclass, drop = FALSE]`: subscript out of bounds
  Backtrace:
       ▆
    1. └─loco$compute() at test-WVIM.R:125:9
    2.   └─private$.compute_wvim(design, store_models = store_models, store_backends = store_backends)
    3.     └─private$.compute_baseline(store_backends = store_backends)
    4.       └─mlr3::resample(...)
    5.         └─mlr3:::future_map(...)
    6.           └─future.apply::future_mapply(...)
    7.             └─future.apply:::future_xapply(...)
    8.               └─base::tryCatch(...)
    9.                 └─base (local) tryCatchList(expr, classes, parentenv, handlers)
   10.                   └─base (local) tryCatchOne(...)
   11.                     └─value[[3L]](cond)
   12.                       └─future.apply:::onError(e, futures = fs, debug = debug)
  
  [ FAIL 1 | WARN 1 | SKIP 7 | PASS 1795 ]
  Error:
  ! Test failures.
  Execution halted