Running ‘testthat.R’ [36s/47s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > # CRAN OMP THREAD LIMIT
  > Sys.setenv("OMP_THREAD_LIMIT" = 1)
  > 
  > library(testthat)
  > library(shapr)
  
  Attaching package: 'shapr'
  
  The following object is masked from 'package:testthat':
  
      setup
  
  > 
  > test_check("shapr")
  
  -- Starting `shapr::explain()` -------------------------------------------------
  i `max_n_coalitions` is `NULL` or larger than `2^n_features = 32`, and is therefore set to `2^n_features = 32`.
  
  -- Explanation overview --
  
  * Model class: <lm>
  * v(S) estimation class: Monte Carlo integration
  * Approach: gaussian
  * Procedure: Non-iterative
  * Number of Monte Carlo integration samples: 5
  * Number of feature-wise Shapley values: 5
  * Number of observations to explain: 3
  
  -- Main computation started --
  
  i Using 32 of 32 coalitions. 
  Saving _problems/test-asymmetric-causal-setup-373.R
  
  -- Starting `shapr::explain()` -------------------------------------------------
  
  -- Explanation overview --
  
  * Model class: <lm>
  * v(S) estimation class: Monte Carlo integration
  * Approach: independence
  * Procedure: Non-iterative
  * Number of Monte Carlo integration samples: 1000
  * Number of feature-wise Shapley values: 5
  * Number of observations to explain: 3
  
  -- Main computation started --
  
  i Using 10 of 32 coalitions. 
  Saving _problems/test-classes-13.R
  
  -- Starting `shapr::explain()` -------------------------------------------------
  
  -- Explanation overview --
  
  * Model class: <lm>
  * v(S) estimation class: Monte Carlo integration
  * Approach: independence
  * Procedure: Non-iterative
  * Number of Monte Carlo integration samples: 1000
  * Number of feature-wise Shapley values: 5
  * Number of observations to explain: 3
  
  -- Main computation started --
  
  i Using 10 of 32 coalitions. 
  Saving _problems/test-classes-41.R
  Saving _problems/test-forecast-setup-221.R
  
  -- Starting `shapr::explain_forecast()` ----------------------------------------
  i Feature names extracted from the model contain `NA`.
    Consistency checks between model and data are therefore disabled.
  i `max_n_coalitions` is `NULL` or larger than `2^n_features = 128`, and is therefore set to `2^n_features = 128`.
  
  -- Explanation overview --
  
  * Model class: <Arima>
  * v(S) estimation class: Monte Carlo integration
  * Approach: empirical
  * Procedure: Non-iterative
  * Number of Monte Carlo integration samples: 1000
  * Number of feature-wise Shapley values: 7
  * Number of observations to explain: 2
  
  -- Main computation started --
  
  i Using 128 of 128 coalitions. 
  Saving _problems/test-forecast-setup-613.R
  
  -- Starting `shapr::explain_forecast()` ----------------------------------------
  i Feature names extracted from the model contain `NA`.
    Consistency checks between model and data are therefore disabled.
  i `max_n_coalitions` is `NULL` or larger than `2^n_groups = 4`, and is therefore set to `2^n_groups = 4`.
  
  -- Explanation overview --
  
  * Model class: <Arima>
  * v(S) estimation class: Monte Carlo integration
  * Approach: empirical
  * Procedure: Non-iterative
  * Number of Monte Carlo integration samples: 1000
  * Number of group-wise Shapley values: 2
  * Number of observations to explain: 2
  
  -- Main computation started --
  
  i Using 4 of 4 coalitions. 
  Saving _problems/test-forecast-setup-687.R
  
  -- Starting `shapr::explain()` -------------------------------------------------
  
  -- Explanation overview --
  
  * Model class: <lm>
  * v(S) estimation class: Monte Carlo integration
  * Approach: independence
  * Procedure: Iterative
  * Number of Monte Carlo integration samples: 1000
  * Number of feature-wise Shapley values: 5
  * Number of observations to explain: 3
  
  -- Iterative computation started --
  
  -- Iteration 1 -----------------------------------------------------------------
  i Using 6 of 32 coalitions, 6 new. 
  Saving _problems/test-iterative-setup-18.R
  
  -- Starting `shapr::explain()` -------------------------------------------------
  i `max_n_coalitions` is `NULL` or larger than `2^n_features = 32`, and is therefore set to `2^n_features = 32`.
  
  -- Explanation overview --
  
  * Model class: <lm>
  * v(S) estimation class: Monte Carlo integration
  * Approach: gaussian
  * Procedure: Iterative
  * Number of Monte Carlo integration samples: 1000
  * Number of feature-wise Shapley values: 5
  * Number of observations to explain: 3
  
  -- Iterative computation started --
  
  -- Iteration 1 -----------------------------------------------------------------
  i Using 6 of 32 coalitions, 6 new. 
  Saving _problems/test-iterative-setup-51.R
  
  -- Starting `shapr::explain()` -------------------------------------------------
  i `max_n_coalitions` is `NULL` or larger than `2^n_features = 32`, and is therefore set to `2^n_features = 32`.
  
  -- Explanation overview --
  
  * Model class: <lm>
  * v(S) estimation class: Monte Carlo integration
  * Approach: empirical
  * Procedure: Non-iterative
  * Number of Monte Carlo integration samples: 1000
  * Number of feature-wise Shapley values: 5
  * Number of observations to explain: 3
  
  -- Main computation started --
  
  i Using 32 of 32 coalitions. 
  Saving _problems/test-iterative-setup-200.R
  Saving _problems/test-iterative-setup-286.R
  Saving _problems/test-iterative-setup-411.R
  Saving _problems/test-model-classes-19.R
  Saving _problems/test-model-classes-43.R
  Saving _problems/test-model-classes-67.R
  Saving _problems/test-model-classes-97.R
  Saving _problems/test-model-classes-122.R
  Saving _problems/test-model-classes-148.R
  Saving _problems/test-model-classes-182.R
  Saving _problems/test-model-classes-215.R
  Saving _problems/test-model-classes-246.R
  Saving _problems/test-model-classes-277.R
  Saving _problems/test-model-classes-303.R
  Saving _problems/test-model-classes-339.R
  Saving _problems/test-regular-setup-51.R
  Saving _problems/test-regular-setup-527.R
  
  -- Starting `shapr::explain()` -------------------------------------------------
  
  -- Explanation overview --
  
  * Model class: <lm>
  * v(S) estimation class: Monte Carlo integration
  * Approach: ctree
  * Procedure: Non-iterative
  * Number of Monte Carlo integration samples: 1000
  * Number of feature-wise Shapley values: 5
  * Number of observations to explain: 3
  
  -- Main computation started --
  
  i Using 10 of 32 coalitions. 
  Saving _problems/test-regular-setup-1216.R
  Saving _problems/test-regular-setup-1235.R
  Saving _problems/test-regular-setup-1281.R
  
  -- Starting `shapr::explain()` -------------------------------------------------
  
  -- Explanation overview --
  
  * Model class: <lm>
  * v(S) estimation class: Monte Carlo integration
  * Approach: ctree
  * Procedure: Non-iterative
  * Number of Monte Carlo integration samples: 1000
  * Number of group-wise Shapley values: 3
  * Feature groups: A: {"Solar.R", "Wind"}; B: {"Temp", "Month_factor"}; C:
  {"Day"}
  * Number of observations to explain: 3
  
  -- Main computation started --
  
  i Using 6 of 8 coalitions. 
  Saving _problems/test-regular-setup-1358.R
  
  -- Starting `shapr::explain()` -------------------------------------------------
  i `max_n_coalitions` is `NULL` or larger than `2^n_features = 32`, and is therefore set to `2^n_features = 32`.
  
  -- Explanation overview --
  
  * Model class: <lm>
  * v(S) estimation class: Monte Carlo integration
  * Approach: empirical
  * Procedure: Non-iterative
  * Number of Monte Carlo integration samples: 1000
  * Number of feature-wise Shapley values: 5
  * Number of observations to explain: 3
  
  -- Main computation started --
  
  i Using 32 of 32 coalitions. 
  Saving _problems/test-regular-setup-1372.R
  
  -- Starting `shapr::explain()` -------------------------------------------------
  i `max_n_coalitions` is `NULL` or larger than `2^n_features = 32`, and is therefore set to `2^n_features = 32`.
  
  -- Explanation overview --
  
  * Model class: <lm>
  * v(S) estimation class: Monte Carlo integration
  * Approach: empirical
  * Procedure: Non-iterative
  * Number of Monte Carlo integration samples: 1000
  * Number of feature-wise Shapley values: 5
  * Number of observations to explain: 3
  
  -- Main computation started --
  
  i Using 32 of 32 coalitions. 
  Saving _problems/test-regular-setup-1421.R
  
  -- Starting `shapr::explain()` -------------------------------------------------
  i `max_n_coalitions` is `NULL` or larger than `2^n_features = 32`, and is therefore set to `2^n_features = 32`.
  
  -- Explanation overview --
  
  * Model class: <lm>
  * v(S) estimation class: Monte Carlo integration
  * Approach: gaussian
  * Procedure: Non-iterative
  * Number of Monte Carlo integration samples: 1000
  * Number of feature-wise Shapley values: 5
  * Number of observations to explain: 3
  
  -- Main computation started --
  
  i Using 32 of 32 coalitions. 
  Saving _problems/test-regular-setup-1485.R
  
  -- Starting `shapr::explain()` -------------------------------------------------
  i `max_n_coalitions` is `NULL` or larger than `2^n_features = 32`, and is therefore set to `2^n_features = 32`.
  
  -- Explanation overview --
  
  * Model class: <lm>
  * v(S) estimation class: Monte Carlo integration
  * Approach: independence, empirical, gaussian, and copula
  * Procedure: Non-iterative
  * Number of Monte Carlo integration samples: 1000
  * Number of feature-wise Shapley values: 5
  * Number of observations to explain: 3
  
  -- Main computation started --
  
  i Using 32 of 32 coalitions. 
  Saving _problems/test-regular-setup-1540.R
  
  -- Starting `shapr::explain()` -------------------------------------------------
  i `max_n_coalitions` is `NULL` or larger than `2^n_features = 32`, and is therefore set to `2^n_features = 32`.
  
  -- Explanation overview --
  
  * Model class: <lm>
  * v(S) estimation class: Monte Carlo integration
  * Approach: independence, empirical, gaussian, and copula
  * Procedure: Non-iterative
  * Number of Monte Carlo integration samples: 1000
  * Number of feature-wise Shapley values: 5
  * Number of observations to explain: 3
  
  -- Main computation started --
  
  i Using 32 of 32 coalitions. 
  Saving _problems/test-regular-setup-1570.R
  
  -- Starting `shapr::explain()` -------------------------------------------------
  i `max_n_coalitions` is `NULL` or larger than `2^n_features = 32`, and is therefore set to `2^n_features = 32`.
  
  -- Explanation overview --
  
  * Model class: <lm>
  * v(S) estimation class: Monte Carlo integration
  * Approach: gaussian
  * Procedure: Non-iterative
  * Number of Monte Carlo integration samples: 1000
  * Number of feature-wise Shapley values: 5
  * Number of observations to explain: 3
  
  -- Main computation started --
  
  i Using 32 of 32 coalitions. 
  Saving _problems/test-regular-setup-1758.R
  Saving _problems/test-regular-setup-1805.R
  Saving _problems/test-regular-setup-1840.R
  Saving _problems/test-regular-setup-1864.R
  
  -- Starting `shapr::explain()` -------------------------------------------------
  
  -- Explanation overview --
  
  * Model class: <lm>
  * v(S) estimation class: Monte Carlo integration
  * Approach: independence
  * Procedure: Non-iterative
  * Number of Monte Carlo integration samples: 50
  * Number of feature-wise Shapley values: 5
  * Number of observations to explain: 3
  
  -- Main computation started --
  
  i Using 18 of 32 coalitions. 
  Saving _problems/test-semi-deterministic-setup-86.R
  
  -- Starting `shapr::explain()` -------------------------------------------------
  
  -- Explanation overview --
  
  * Model class: <lm>
  * v(S) estimation class: Monte Carlo integration
  * Approach: independence
  * Procedure: Non-iterative
  * Number of Monte Carlo integration samples: 50
  * Number of feature-wise Shapley values: 5
  * Number of observations to explain: 3
  
  -- Main computation started --
  
  i Using 20 of 32 coalitions. 
  Saving _problems/test-semi-deterministic-setup-115.R
  [ FAIL 42 | WARN 0 | SKIP 46 | PASS 2 ]
  
  ══ Skipped tests (46) ══════════════════════════════════════════════════════════
  • On CRAN (44): 'test-asymmetric-causal-output.R:14:1',
    'test-asymmetric-causal-setup.R:1:1', 'test-asymmetric-causal-setup.R:229:1',
    'test-asymmetric-causal-setup.R:253:1',
    'test-asymmetric-causal-setup.R:318:1', 'test-forecast-output.R:2:1',
    'test-forecast-setup.R:3:1', 'test-forecast-setup.R:33:1',
    'test-forecast-setup.R:107:1', 'test-forecast-setup.R:136:1',
    'test-forecast-setup.R:225:1', 'test-forecast-setup.R:299:1',
    'test-forecast-setup.R:349:1', 'test-forecast-setup.R:445:1',
    'test-forecast-setup.R:518:1', 'test-iterative-output.R:1:1',
    'test-iterative-setup.R:75:1', 'test-plot.R:1:1',
    'test-regression-output.R:1:1', 'test-regression-setup.R:8:1',
    'test-regression-setup.R:46:1', 'test-regression-setup.R:174:1',
    'test-regression-setup.R:232:1', 'test-regression-setup.R:294:1',
    'test-regression-setup.R:335:1', 'test-regular-output.R:1:1',
    'test-regular-setup.R:1:1', 'test-regular-setup.R:118:1',
    'test-regular-setup.R:236:1', 'test-regular-setup.R:259:1',
    'test-regular-setup.R:317:1', 'test-regular-setup.R:554:1',
    'test-regular-setup.R:677:1', 'test-regular-setup.R:792:1',
    'test-regular-setup.R:813:1', 'test-regular-setup.R:871:1',
    'test-regular-setup.R:929:1', 'test-regular-setup.R:1036:1',
    'test-regular-setup.R:1148:1', 'test-semi-deterministic-output.R:1:1',
    'test-semi-deterministic-setup.R:1:1',
    'test-semi-deterministic-setup.R:22:1',
    'test-semi-deterministic-setup.R:47:1', 'test-summary.R:1:1'
  • torch::torch_is_installed() is not TRUE (2): 'test-regular-setup.R:1628:3',
    'test-regular-setup.R:1671:3'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-asymmetric-causal-setup.R:364:3'): cond_sym_as_NULLconfounding ──
  Error in ``[.data.table`(dt, , `:=`(N, .N), coalition_size)`: attempt access index 4/4 in VECTOR_ELT
  Backtrace:
      ▆
   1. └─shapr::explain(...) at test-asymmetric-causal-setup.R:364:3
   2.   └─shapr::shapley_setup(internal)
   3.     └─shapr:::create_coalition_table(...)
   4.       └─shapr:::exact_coalition_table(...)
   5.         ├─dt[, `:=`(N, .N), coalition_size]
   6.         └─data.table:::`[.data.table`(dt, , `:=`(N, .N), coalition_size)
  ── Error ('test-classes.R:4:3'): shapr class has correct structure ─────────────
  Error in ``[.data.table`(dt, , `:=`(N, .N), coalition_size)`: attempt access index 4/4 in VECTOR_ELT
  Backtrace:
      ▆
   1. └─shapr::explain(...) at test-classes.R:4:3
   2.   └─shapr::shapley_setup(internal)
   3.     └─shapr:::create_coalition_table(...)
   4.       └─shapr:::sample_coalition_table(...)
   5.         └─shapr:::exact_coalition_table(...)
   6.           ├─dt[, `:=`(N, .N), coalition_size]
   7.           └─data.table:::`[.data.table`(dt, , `:=`(N, .N), coalition_size)
  ── Error ('test-classes.R:32:3'): summary.shapr class has correct structure ────
  Error in ``[.data.table`(dt, , `:=`(N, .N), coalition_size)`: attempt access index 4/4 in VECTOR_ELT
  Backtrace:
      ▆
   1. └─shapr::explain(...) at test-classes.R:32:3
   2.   └─shapr::shapley_setup(internal)
   3.     └─shapr:::create_coalition_table(...)
   4.       └─shapr:::sample_coalition_table(...)
   5.         └─shapr:::exact_coalition_table(...)
   6.           ├─dt[, `:=`(N, .N), coalition_size]
   7.           └─data.table:::`[.data.table`(dt, , `:=`(N, .N), coalition_size)
  ── Error ('test-forecast-setup.R:197:3'): erroneous input: `max_n_coalitions` ──
  Error in ``[.data.table`(dt, , `:=`(N, .N), coalition_size)`: attempt access index 4/4 in VECTOR_ELT
  Backtrace:
      ▆
   1. └─shapr::explain_forecast(...)
   2.   └─shapr:::shapley_setup_forecast(internal)
   3.     └─shapr:::create_coalition_table(...)
   4.       └─shapr:::exact_coalition_table(...)
   5.         ├─dt[, `:=`(N, .N), coalition_size]
   6.         └─data.table:::`[.data.table`(dt, , `:=`(N, .N), coalition_size)
  ── Error ('test-forecast-setup.R:597:3'): ARIMA gives the same output with different horizons ──
  Error in ``[.data.table`(dt, , `:=`(N, .N), coalition_size)`: attempt access index 4/4 in VECTOR_ELT
  Backtrace:
      ▆
   1. └─shapr::explain_forecast(...) at test-forecast-setup.R:597:3
   2.   └─shapr:::shapley_setup_forecast(internal)
   3.     └─shapr:::create_coalition_table(...)
   4.       └─shapr:::exact_coalition_table(...)
   5.         ├─dt[, `:=`(N, .N), coalition_size]
   6.         └─data.table:::`[.data.table`(dt, , `:=`(N, .N), coalition_size)
  ── Error ('test-forecast-setup.R:671:3'): ARIMA gives the same output with different horizons with grouping ──
  Error in ``[.data.table`(dt, , `:=`(N, .N), coalition_size)`: attempt access index 4/4 in VECTOR_ELT
  Backtrace:
      ▆
   1. └─shapr::explain_forecast(...) at test-forecast-setup.R:671:3
   2.   └─shapr:::shapley_setup_forecast(internal)
   3.     └─shapr:::create_coalition_table(...)
   4.       └─shapr:::exact_coalition_table(...)
   5.         ├─dt[, `:=`(N, .N), coalition_size]
   6.         └─data.table:::`[.data.table`(dt, , `:=`(N, .N), coalition_size)
  ── Error ('test-iterative-setup.R:2:3'): iterative_args are respected ──────────
  Error in ``[.data.table`(dt, , `:=`(N, .N), coalition_size)`: attempt access index 4/4 in VECTOR_ELT
  Backtrace:
      ▆
   1. └─shapr::explain(...) at test-iterative-setup.R:2:3
   2.   └─shapr::shapley_setup(internal)
   3.     └─shapr:::create_coalition_table(...)
   4.       └─shapr:::sample_coalition_table(...)
   5.         └─shapr:::exact_coalition_table(...)
   6.           ├─dt[, `:=`(N, .N), coalition_size]
   7.           └─data.table:::`[.data.table`(dt, , `:=`(N, .N), coalition_size)
  ── Error ('test-iterative-setup.R:38:3'): iterative feature wise and groupwise computations identical ──
  Error in ``[.data.table`(dt, , `:=`(N, .N), coalition_size)`: attempt access index 4/4 in VECTOR_ELT
  Backtrace:
      ▆
   1. └─shapr::explain(...) at test-iterative-setup.R:38:3
   2.   └─shapr::shapley_setup(internal)
   3.     └─shapr:::create_coalition_table(...)
   4.       └─shapr:::sample_coalition_table(...)
   5.         └─shapr:::exact_coalition_table(...)
   6.           ├─dt[, `:=`(N, .N), coalition_size]
   7.           └─data.table:::`[.data.table`(dt, , `:=`(N, .N), coalition_size)
  ── Error ('test-iterative-setup.R:191:3'): different n_batches gives same/different shapley values for different approaches ──
  Error in ``[.data.table`(dt, , `:=`(N, .N), coalition_size)`: attempt access index 4/4 in VECTOR_ELT
  Backtrace:
      ▆
   1. └─shapr::explain(...) at test-iterative-setup.R:191:3
   2.   └─shapr::shapley_setup(internal)
   3.     └─shapr:::create_coalition_table(...)
   4.       └─shapr:::exact_coalition_table(...)
   5.         ├─dt[, `:=`(N, .N), coalition_size]
   6.         └─data.table:::`[.data.table`(dt, , `:=`(N, .N), coalition_size)
  ── Error ('test-iterative-setup.R:267:3'): output_lm_numeric_independence_saving_and_cont_est ──
  Error in ``[.data.table`(dt, , `:=`(N, .N), coalition_size)`: attempt access index 4/4 in VECTOR_ELT
  Backtrace:
      ▆
   1. └─shapr::explain(...) at test-iterative-setup.R:267:3
   2.   └─shapr::shapley_setup(internal)
   3.     └─shapr:::create_coalition_table(...)
   4.       └─shapr:::sample_coalition_table(...)
   5.         └─shapr:::exact_coalition_table(...)
   6.           ├─dt[, `:=`(N, .N), coalition_size]
   7.           └─data.table:::`[.data.table`(dt, , `:=`(N, .N), coalition_size)
  ── Error ('test-iterative-setup.R:398:3'): output_lm_numeric_independence_keep_samp_for_vS ──
  Error in ``[.data.table`(dt, , `:=`(N, .N), coalition_size)`: attempt access index 4/4 in VECTOR_ELT
  Backtrace:
       ▆
    1. ├─shapr:::expect_snapshot_rds(...) at test-iterative-setup.R:398:3
    2. │ ├─testthat::expect_snapshot(...)
    3. │ │ └─testthat:::expect_snapshot_(...)
    4. │ │   ├─testthat:::with_is_snapshotting(...)
    5. │ │   └─testthat:::verify_exec(quo_get_expr(x), quo_get_env(x), replay)
    6. │ │     └─evaluate::evaluate(source, envir = env, new_device = FALSE, output_handler = handler)
    7. │ │       ├─base::withRestarts(...)
    8. │ │       │ └─base (local) withRestartList(expr, restarts)
    9. │ │       │   ├─base (local) withOneRestart(withRestartList(expr, restarts[-nr]), restarts[[nr]])
   10. │ │       │   │ └─base (local) doWithOneRestart(return(expr), restart)
   11. │ │       │   └─base (local) withRestartList(expr, restarts[-nr])
   12. │ │       │     └─base (local) withOneRestart(expr, restarts[[1L]])
   13. │ │       │       └─base (local) doWithOneRestart(return(expr), restart)
   14. │ │       ├─evaluate:::with_handlers(...)
   15. │ │       │ ├─base::eval(call)
   16. │ │       │ │ └─base::eval(call)
   17. │ │       │ └─base::withCallingHandlers(...)
   18. │ │       ├─base::withVisible(eval(expr, envir))
   19. │ │       └─base::eval(expr, envir)
   20. │ │         └─base::eval(expr, envir)
   21. │ └─base::print(...)
   22. └─shapr::explain(...)
   23.   └─shapr::shapley_setup(internal)
   24.     └─shapr:::create_coalition_table(...)
   25.       └─shapr:::sample_coalition_table(...)
   26.         └─shapr:::exact_coalition_table(...)
   27.           ├─dt[, `:=`(N, .N), coalition_size]
   28.           └─data.table:::`[.data.table`(dt, , `:=`(N, .N), coalition_size)
  ── Error ('test-iterative-setup.R:421:7'): output_verbose_suppressMessages ─────
  Error in ``[.data.table`(dt, , `:=`(N, .N), coalition_size)`: attempt access index 4/4 in VECTOR_ELT
  Backtrace:
       ▆
    1. ├─testthat::expect_silent(...) at test-iterative-setup.R:419:3
    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. ├─base::suppressMessages(...) at test-iterative-setup.R:420:5
   10. │ └─base::withCallingHandlers(...)
   11. └─shapr::explain(...) at test-iterative-setup.R:421:7
   12.   └─shapr::shapley_setup(internal)
   13.     └─shapr:::create_coalition_table(...)
   14.       └─shapr:::sample_coalition_table(...)
   15.         └─shapr:::exact_coalition_table(...)
   16.           ├─dt[, `:=`(N, .N), coalition_size]
   17.           └─data.table:::`[.data.table`(dt, , `:=`(N, .N), coalition_size)
  ── Error ('test-iterative-setup.R:439:5'): output_verbose_NULL ─────────────────
  Error in ``[.data.table`(dt, , `:=`(N, .N), coalition_size)`: attempt access index 4/4 in VECTOR_ELT
  Backtrace:
       ▆
    1. ├─testthat::expect_silent(...) at test-iterative-setup.R:438:3
    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. └─shapr::explain(...) at test-iterative-setup.R:439:5
   10.   └─shapr::shapley_setup(internal)
   11.     └─shapr:::create_coalition_table(...)
   12.       └─shapr:::sample_coalition_table(...)
   13.         └─shapr:::exact_coalition_table(...)
   14.           ├─dt[, `:=`(N, .N), coalition_size]
   15.           └─data.table:::`[.data.table`(dt, , `:=`(N, .N), coalition_size)
  ── Error ('test-model-classes.R:11:3'): lm model works with explain ────────────
  Error in ``[.data.table`(dt, , `:=`(N, .N), coalition_size)`: attempt access index 4/4 in VECTOR_ELT
  Backtrace:
      ▆
   1. └─shapr::explain(...) at test-model-classes.R:11:3
   2.   └─shapr::shapley_setup(internal)
   3.     └─shapr:::create_coalition_table(...)
   4.       └─shapr:::exact_coalition_table(...)
   5.         ├─dt[, `:=`(N, .N), coalition_size]
   6.         └─data.table:::`[.data.table`(dt, , `:=`(N, .N), coalition_size)
  ── Error ('test-model-classes.R:35:3'): glm model works with explain (gaussian) ──
  Error in ``[.data.table`(dt, , `:=`(N, .N), coalition_size)`: attempt access index 4/4 in VECTOR_ELT
  Backtrace:
      ▆
   1. └─shapr::explain(...) at test-model-classes.R:35:3
   2.   └─shapr::shapley_setup(internal)
   3.     └─shapr:::create_coalition_table(...)
   4.       └─shapr:::exact_coalition_table(...)
   5.         ├─dt[, `:=`(N, .N), coalition_size]
   6.         └─data.table:::`[.data.table`(dt, , `:=`(N, .N), coalition_size)
  ── Error ('test-model-classes.R:59:3'): glm model works with explain (binomial) ──
  Error in ``[.data.table`(dt, , `:=`(N, .N), coalition_size)`: attempt access index 4/4 in VECTOR_ELT
  Backtrace:
      ▆
   1. └─shapr::explain(...) at test-model-classes.R:59:3
   2.   └─shapr::shapley_setup(internal)
   3.     └─shapr:::create_coalition_table(...)
   4.       └─shapr:::exact_coalition_table(...)
   5.         ├─dt[, `:=`(N, .N), coalition_size]
   6.         └─data.table:::`[.data.table`(dt, , `:=`(N, .N), coalition_size)
  ── Error ('test-model-classes.R:85:3'): ar model works with explain_forecast ───
  Error in ``[.data.table`(dt, , `:=`(N, .N), coalition_size)`: attempt access index 4/4 in VECTOR_ELT
  Backtrace:
      ▆
   1. └─shapr::explain_forecast(...) at test-model-classes.R:85:3
   2.   └─shapr:::shapley_setup_forecast(internal)
   3.     └─shapr:::create_coalition_table(...)
   4.       └─shapr:::exact_coalition_table(...)
   5.         ├─dt[, `:=`(N, .N), coalition_size]
   6.         └─data.table:::`[.data.table`(dt, , `:=`(N, .N), coalition_size)
  ── Error ('test-model-classes.R:114:3'): ranger model works with explain (regression) ──
  Error in ``[.data.table`(dt, , `:=`(N, .N), coalition_size)`: attempt access index 4/4 in VECTOR_ELT
  Backtrace:
      ▆
   1. └─shapr::explain(...) at test-model-classes.R:114:3
   2.   └─shapr::shapley_setup(internal)
   3.     └─shapr:::create_coalition_table(...)
   4.       └─shapr:::exact_coalition_table(...)
   5.         ├─dt[, `:=`(N, .N), coalition_size]
   6.         └─data.table:::`[.data.table`(dt, , `:=`(N, .N), coalition_size)
  ── Error ('test-model-classes.R:140:3'): ranger model works with explain (probability) ──
  Error in ``[.data.table`(dt, , `:=`(N, .N), coalition_size)`: attempt access index 4/4 in VECTOR_ELT
  Backtrace:
      ▆
   1. └─shapr::explain(...) at test-model-classes.R:140:3
   2.   └─shapr::shapley_setup(internal)
   3.     └─shapr:::create_coalition_table(...)
   4.       └─shapr:::exact_coalition_table(...)
   5.         ├─dt[, `:=`(N, .N), coalition_size]
   6.         └─data.table:::`[.data.table`(dt, , `:=`(N, .N), coalition_size)
  ── Error ('test-model-classes.R:174:3'): xgb.train model works with explain (regression) ──
  Error in ``[.data.table`(dt, , `:=`(N, .N), coalition_size)`: attempt access index 4/4 in VECTOR_ELT
  Backtrace:
      ▆
   1. └─shapr::explain(...) at test-model-classes.R:174:3
   2.   └─shapr::shapley_setup(internal)
   3.     └─shapr:::create_coalition_table(...)
   4.       └─shapr:::exact_coalition_table(...)
   5.         ├─dt[, `:=`(N, .N), coalition_size]
   6.         └─data.table:::`[.data.table`(dt, , `:=`(N, .N), coalition_size)
  ── Error ('test-model-classes.R:207:3'): xgb.train model works with explain (binary classification) ──
  Error in ``[.data.table`(dt, , `:=`(N, .N), coalition_size)`: attempt access index 4/4 in VECTOR_ELT
  Backtrace:
      ▆
   1. └─shapr::explain(...) at test-model-classes.R:207:3
   2.   └─shapr::shapley_setup(internal)
   3.     └─shapr:::create_coalition_table(...)
   4.       └─shapr:::exact_coalition_table(...)
   5.         ├─dt[, `:=`(N, .N), coalition_size]
   6.         └─data.table:::`[.data.table`(dt, , `:=`(N, .N), coalition_size)
  ── Error ('test-model-classes.R:238:3'): xgboost wrapper works with explain (regression) ──
  Error in ``[.data.table`(dt, , `:=`(N, .N), coalition_size)`: attempt access index 4/4 in VECTOR_ELT
  Backtrace:
      ▆
   1. └─shapr::explain(...) at test-model-classes.R:238:3
   2.   └─shapr::shapley_setup(internal)
   3.     └─shapr:::create_coalition_table(...)
   4.       └─shapr:::exact_coalition_table(...)
   5.         ├─dt[, `:=`(N, .N), coalition_size]
   6.         └─data.table:::`[.data.table`(dt, , `:=`(N, .N), coalition_size)
  ── Error ('test-model-classes.R:269:3'): xgboost wrapper works with explain (binary classification) ──
  Error in ``[.data.table`(dt, , `:=`(N, .N), coalition_size)`: attempt access index 4/4 in VECTOR_ELT
  Backtrace:
      ▆
   1. └─shapr::explain(...) at test-model-classes.R:269:3
   2.   └─shapr::shapley_setup(internal)
   3.     └─shapr:::create_coalition_table(...)
   4.       └─shapr:::exact_coalition_table(...)
   5.         ├─dt[, `:=`(N, .N), coalition_size]
   6.         └─data.table:::`[.data.table`(dt, , `:=`(N, .N), coalition_size)
  ── Error ('test-model-classes.R:295:3'): mgcv gam model works with explain ─────
  Error in ``[.data.table`(dt, , `:=`(N, .N), coalition_size)`: attempt access index 4/4 in VECTOR_ELT
  Backtrace:
      ▆
   1. └─shapr::explain(...) at test-model-classes.R:295:3
   2.   └─shapr::shapley_setup(internal)
   3.     └─shapr:::create_coalition_table(...)
   4.       └─shapr:::exact_coalition_table(...)
   5.         ├─dt[, `:=`(N, .N), coalition_size]
   6.         └─data.table:::`[.data.table`(dt, , `:=`(N, .N), coalition_size)
  ── Error ('test-model-classes.R:331:3'): workflows model works with explain ────
  Error in ``[.data.table`(dt, , `:=`(N, .N), coalition_size)`: attempt access index 4/4 in VECTOR_ELT
  Backtrace:
      ▆
   1. └─shapr::explain(...) at test-model-classes.R:331:3
   2.   └─shapr::shapley_setup(internal)
   3.     └─shapr:::create_coalition_table(...)
   4.       └─shapr:::exact_coalition_table(...)
   5.         ├─dt[, `:=`(N, .N), coalition_size]
   6.         └─data.table:::`[.data.table`(dt, , `:=`(N, .N), coalition_size)
  ── Error ('test-regular-setup.R:38:3'): messages with missing detail in get_model_specs ──
  Error in ``[.data.table`(dt, , `:=`(N, .N), coalition_size)`: attempt access index 4/4 in VECTOR_ELT
  Backtrace:
      ▆
   1. └─shapr::explain(...)
   2.   └─shapr::shapley_setup(internal)
   3.     └─shapr:::create_coalition_table(...)
   4.       └─shapr:::exact_coalition_table(...)
   5.         ├─dt[, `:=`(N, .N), coalition_size]
   6.         └─data.table:::`[.data.table`(dt, , `:=`(N, .N), coalition_size)
  ── Error ('test-regular-setup.R:513:3'): erroneous input: `max_n_coalitions` ───
  Error in ``[.data.table`(dt, , `:=`(N, .N), coalition_size)`: attempt access index 4/4 in VECTOR_ELT
  Backtrace:
      ▆
   1. └─shapr::explain(...)
   2.   └─shapr::shapley_setup(internal)
   3.     └─shapr:::create_coalition_table(...)
   4.       └─shapr:::sample_coalition_table(...)
   5.         └─shapr:::exact_coalition_table(...)
   6.           ├─dt[, `:=`(N, .N), coalition_size]
   7.           └─data.table:::`[.data.table`(dt, , `:=`(N, .N), coalition_size)
  ── Error ('test-regular-setup.R:1207:3'): Correct dimension of S when sampling combinations ──
  Error in ``[.data.table`(dt, , `:=`(N, .N), coalition_size)`: attempt access index 4/4 in VECTOR_ELT
  Backtrace:
      ▆
   1. └─shapr::explain(...) at test-regular-setup.R:1207:3
   2.   └─shapr::shapley_setup(internal)
   3.     └─shapr:::create_coalition_table(...)
   4.       └─shapr:::sample_coalition_table(...)
   5.         └─shapr:::exact_coalition_table(...)
   6.           ├─dt[, `:=`(N, .N), coalition_size]
   7.           └─data.table:::`[.data.table`(dt, , `:=`(N, .N), coalition_size)
  ── Error ('test-regular-setup.R:1224:3'): Message with too low `max_n_coalitions` ──
  Error in ``[.data.table`(dt, , `:=`(N, .N), coalition_size)`: attempt access index 4/4 in VECTOR_ELT
  Backtrace:
      ▆
   1. └─shapr::explain(...)
   2.   └─shapr::shapley_setup(internal)
   3.     └─shapr:::create_coalition_table(...)
   4.       └─shapr:::sample_coalition_table(...)
   5.         └─shapr:::exact_coalition_table(...)
   6.           ├─dt[, `:=`(N, .N), coalition_size]
   7.           └─data.table:::`[.data.table`(dt, , `:=`(N, .N), coalition_size)
  ── Error ('test-regular-setup.R:1268:3'): Shapr with `max_n_coalitions` >= 2^m uses exact Shapley kernel weights ──
  Error in ``[.data.table`(dt, , `:=`(N, .N), coalition_size)`: attempt access index 4/4 in VECTOR_ELT
  Backtrace:
      ▆
   1. └─shapr::explain(...)
   2.   └─shapr::shapley_setup(internal)
   3.     └─shapr:::create_coalition_table(...)
   4.       └─shapr:::exact_coalition_table(...)
   5.         ├─dt[, `:=`(N, .N), coalition_size]
   6.         └─data.table:::`[.data.table`(dt, , `:=`(N, .N), coalition_size)
  ── Error ('test-regular-setup.R:1348:3'): Correct dimension of S when sampling combinations with groups ──
  Error in ``[.data.table`(dt, , `:=`(N, .N), coalition_size)`: attempt access index 4/4 in VECTOR_ELT
  Backtrace:
      ▆
   1. └─shapr::explain(...) at test-regular-setup.R:1348:3
   2.   └─shapr::shapley_setup(internal)
   3.     └─shapr:::create_coalition_table(...)
   4.       └─shapr:::sample_coalition_table(...)
   5.         └─shapr:::exact_coalition_table(...)
   6.           ├─dt[, `:=`(N, .N), coalition_size]
   7.           └─data.table:::`[.data.table`(dt, , `:=`(N, .N), coalition_size)
  ── Error ('test-regular-setup.R:1364:3'): data feature ordering is output_lm_numeric_column_order ──
  Error in ``[.data.table`(dt, , `:=`(N, .N), coalition_size)`: attempt access index 4/4 in VECTOR_ELT
  Backtrace:
      ▆
   1. └─shapr::explain(...) at test-regular-setup.R:1364:3
   2.   └─shapr::shapley_setup(internal)
   3.     └─shapr:::create_coalition_table(...)
   4.       └─shapr:::exact_coalition_table(...)
   5.         ├─dt[, `:=`(N, .N), coalition_size]
   6.         └─data.table:::`[.data.table`(dt, , `:=`(N, .N), coalition_size)
  ── Error ('test-regular-setup.R:1413:3'): parallelization gives same output for any approach ──
  Error in ``[.data.table`(dt, , `:=`(N, .N), coalition_size)`: attempt access index 4/4 in VECTOR_ELT
  Backtrace:
      ▆
   1. └─shapr::explain(...) at test-regular-setup.R:1413:3
   2.   └─shapr::shapley_setup(internal)
   3.     └─shapr:::create_coalition_table(...)
   4.       └─shapr:::exact_coalition_table(...)
   5.         ├─dt[, `:=`(N, .N), coalition_size]
   6.         └─data.table:::`[.data.table`(dt, , `:=`(N, .N), coalition_size)
  ── Error ('test-regular-setup.R:1477:3'): gaussian approach use the user provided parameters ──
  Error in ``[.data.table`(dt, , `:=`(N, .N), coalition_size)`: attempt access index 4/4 in VECTOR_ELT
  Backtrace:
      ▆
   1. └─shapr::explain(...) at test-regular-setup.R:1477:3
   2.   └─shapr::shapley_setup(internal)
   3.     └─shapr:::create_coalition_table(...)
   4.       └─shapr:::exact_coalition_table(...)
   5.         ├─dt[, `:=`(N, .N), coalition_size]
   6.         └─data.table:::`[.data.table`(dt, , `:=`(N, .N), coalition_size)
  ── Error ('test-regular-setup.R:1532:3'): setting the seed for combined approaches works ──
  Error in ``[.data.table`(dt, , `:=`(N, .N), coalition_size)`: attempt access index 4/4 in VECTOR_ELT
  Backtrace:
      ▆
   1. └─shapr::explain(...) at test-regular-setup.R:1532:3
   2.   └─shapr::shapley_setup(internal)
   3.     └─shapr:::create_coalition_table(...)
   4.       └─shapr:::exact_coalition_table(...)
   5.         ├─dt[, `:=`(N, .N), coalition_size]
   6.         └─data.table:::`[.data.table`(dt, , `:=`(N, .N), coalition_size)
  ── Error ('test-regular-setup.R:1562:3'): counting the number of unique approaches ──
  Error in ``[.data.table`(dt, , `:=`(N, .N), coalition_size)`: attempt access index 4/4 in VECTOR_ELT
  Backtrace:
      ▆
   1. └─shapr::explain(...) at test-regular-setup.R:1562:3
   2.   └─shapr::shapley_setup(internal)
   3.     └─shapr:::create_coalition_table(...)
   4.       └─shapr:::exact_coalition_table(...)
   5.         ├─dt[, `:=`(N, .N), coalition_size]
   6.         └─data.table:::`[.data.table`(dt, , `:=`(N, .N), coalition_size)
  ── Error ('test-regular-setup.R:1750:3'): feature wise and groupwise computations are identical ──
  Error in ``[.data.table`(dt, , `:=`(N, .N), coalition_size)`: attempt access index 4/4 in VECTOR_ELT
  Backtrace:
      ▆
   1. └─shapr::explain(...) at test-regular-setup.R:1750:3
   2.   └─shapr::shapley_setup(internal)
   3.     └─shapr:::create_coalition_table(...)
   4.       └─shapr:::exact_coalition_table(...)
   5.         ├─dt[, `:=`(N, .N), coalition_size]
   6.         └─data.table:::`[.data.table`(dt, , `:=`(N, .N), coalition_size)
  ── Error ('test-regular-setup.R:1792:3'): output_custom_lm_numeric_independence_2 ──
  Error in ``[.data.table`(dt, , `:=`(N, .N), coalition_size)`: attempt access index 4/4 in VECTOR_ELT
  Backtrace:
       ▆
    1. ├─shapr:::expect_snapshot_rds(...) at test-regular-setup.R:1792:3
    2. │ ├─testthat::expect_snapshot(...)
    3. │ │ └─testthat:::expect_snapshot_(...)
    4. │ │   ├─testthat:::with_is_snapshotting(...)
    5. │ │   └─testthat:::verify_exec(quo_get_expr(x), quo_get_env(x), replay)
    6. │ │     └─evaluate::evaluate(source, envir = env, new_device = FALSE, output_handler = handler)
    7. │ │       ├─base::withRestarts(...)
    8. │ │       │ └─base (local) withRestartList(expr, restarts)
    9. │ │       │   ├─base (local) withOneRestart(withRestartList(expr, restarts[-nr]), restarts[[nr]])
   10. │ │       │   │ └─base (local) doWithOneRestart(return(expr), restart)
   11. │ │       │   └─base (local) withRestartList(expr, restarts[-nr])
   12. │ │       │     └─base (local) withOneRestart(expr, restarts[[1L]])
   13. │ │       │       └─base (local) doWithOneRestart(return(expr), restart)
   14. │ │       ├─evaluate:::with_handlers(...)
   15. │ │       │ ├─base::eval(call)
   16. │ │       │ │ └─base::eval(call)
   17. │ │       │ └─base::withCallingHandlers(...)
   18. │ │       ├─base::withVisible(eval(expr, envir))
   19. │ │       └─base::eval(expr, envir)
   20. │ │         └─base::eval(expr, envir)
   21. │ └─base::print(...)
   22. └─shapr::explain(...)
   23.   └─shapr::shapley_setup(internal)
   24.     └─shapr:::create_coalition_table(...)
   25.       └─shapr:::exact_coalition_table(...)
   26.         ├─dt[, `:=`(N, .N), coalition_size]
   27.         └─data.table:::`[.data.table`(dt, , `:=`(N, .N), coalition_size)
  ── Error ('test-regular-setup.R:1827:3'): output_lm_numeric_independence_keep_samp_for_vS ──
  Error in ``[.data.table`(dt, , `:=`(N, .N), coalition_size)`: attempt access index 4/4 in VECTOR_ELT
  Backtrace:
       ▆
    1. ├─shapr:::expect_snapshot_rds(...) at test-regular-setup.R:1827:3
    2. │ ├─testthat::expect_snapshot(...)
    3. │ │ └─testthat:::expect_snapshot_(...)
    4. │ │   ├─testthat:::with_is_snapshotting(...)
    5. │ │   └─testthat:::verify_exec(quo_get_expr(x), quo_get_env(x), replay)
    6. │ │     └─evaluate::evaluate(source, envir = env, new_device = FALSE, output_handler = handler)
    7. │ │       ├─base::withRestarts(...)
    8. │ │       │ └─base (local) withRestartList(expr, restarts)
    9. │ │       │   ├─base (local) withOneRestart(withRestartList(expr, restarts[-nr]), restarts[[nr]])
   10. │ │       │   │ └─base (local) doWithOneRestart(return(expr), restart)
   11. │ │       │   └─base (local) withRestartList(expr, restarts[-nr])
   12. │ │       │     └─base (local) withOneRestart(expr, restarts[[1L]])
   13. │ │       │       └─base (local) doWithOneRestart(return(expr), restart)
   14. │ │       ├─evaluate:::with_handlers(...)
   15. │ │       │ ├─base::eval(call)
   16. │ │       │ │ └─base::eval(call)
   17. │ │       │ └─base::withCallingHandlers(...)
   18. │ │       ├─base::withVisible(eval(expr, envir))
   19. │ │       └─base::eval(expr, envir)
   20. │ │         └─base::eval(expr, envir)
   21. │ └─base::print(...)
   22. └─shapr::explain(...)
   23.   └─shapr::shapley_setup(internal)
   24.     └─shapr:::create_coalition_table(...)
   25.       └─shapr:::exact_coalition_table(...)
   26.         ├─dt[, `:=`(N, .N), coalition_size]
   27.         └─data.table:::`[.data.table`(dt, , `:=`(N, .N), coalition_size)
  ── Error ('test-regular-setup.R:1850:3'): output_lm_numeric_vS_batching_method ──
  Error in ``[.data.table`(dt, , `:=`(N, .N), coalition_size)`: attempt access index 4/4 in VECTOR_ELT
  Backtrace:
       ▆
    1. ├─shapr:::expect_snapshot_rds(...) at test-regular-setup.R:1850:3
    2. │ ├─testthat::expect_snapshot(...)
    3. │ │ └─testthat:::expect_snapshot_(...)
    4. │ │   ├─testthat:::with_is_snapshotting(...)
    5. │ │   └─testthat:::verify_exec(quo_get_expr(x), quo_get_env(x), replay)
    6. │ │     └─evaluate::evaluate(source, envir = env, new_device = FALSE, output_handler = handler)
    7. │ │       ├─base::withRestarts(...)
    8. │ │       │ └─base (local) withRestartList(expr, restarts)
    9. │ │       │   ├─base (local) withOneRestart(withRestartList(expr, restarts[-nr]), restarts[[nr]])
   10. │ │       │   │ └─base (local) doWithOneRestart(return(expr), restart)
   11. │ │       │   └─base (local) withRestartList(expr, restarts[-nr])
   12. │ │       │     └─base (local) withOneRestart(expr, restarts[[1L]])
   13. │ │       │       └─base (local) doWithOneRestart(return(expr), restart)
   14. │ │       ├─evaluate:::with_handlers(...)
   15. │ │       │ ├─base::eval(call)
   16. │ │       │ │ └─base::eval(call)
   17. │ │       │ └─base::withCallingHandlers(...)
   18. │ │       ├─base::withVisible(eval(expr, envir))
   19. │ │       └─base::eval(expr, envir)
   20. │ │         └─base::eval(expr, envir)
   21. │ └─base::print(...)
   22. └─shapr::explain(...)
   23.   └─shapr::shapley_setup(internal)
   24.     └─shapr:::create_coalition_table(...)
   25.       └─shapr:::sample_coalition_table(...)
   26.         └─shapr:::exact_coalition_table(...)
   27.           ├─dt[, `:=`(N, .N), coalition_size]
   28.           └─data.table:::`[.data.table`(dt, , `:=`(N, .N), coalition_size)
  ── Error ('test-semi-deterministic-setup.R:73:3'): setup_semi_determ_n_determ_sample_coal_18 ──
  Error in ``[.data.table`(dt, , `:=`(N, .N), coalition_size)`: attempt access index 4/4 in VECTOR_ELT
  Backtrace:
      ▆
   1. └─shapr::explain(...) at test-semi-deterministic-setup.R:73:3
   2.   └─shapr::shapley_setup(internal)
   3.     └─shapr:::create_coalition_table(...)
   4.       └─shapr:::sample_coalition_table(...)
   5.         └─shapr:::exact_coalition_table(...)
   6.           ├─dt[, `:=`(N, .N), coalition_size]
   7.           └─data.table:::`[.data.table`(dt, , `:=`(N, .N), coalition_size)
  ── Error ('test-semi-deterministic-setup.R:102:3'): setup_semi_determ_n_determ_sample_coal_20 ──
  Error in ``[.data.table`(dt, , `:=`(N, .N), coalition_size)`: attempt access index 4/4 in VECTOR_ELT
  Backtrace:
      ▆
   1. └─shapr::explain(...) at test-semi-deterministic-setup.R:102:3
   2.   └─shapr::shapley_setup(internal)
   3.     └─shapr:::create_coalition_table(...)
   4.       └─shapr:::sample_coalition_table(...)
   5.         └─shapr:::exact_coalition_table(...)
   6.           ├─dt[, `:=`(N, .N), coalition_size]
   7.           └─data.table:::`[.data.table`(dt, , `:=`(N, .N), coalition_size)
  
  [ FAIL 42 | WARN 0 | SKIP 46 | PASS 2 ]
  Error:
  ! Test failures.
  Execution halted