Running ‘testthat.R’ [32s/38s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > if (requireNamespace("testthat", quietly = TRUE)) {
  +   library("testthat")
  +   library("checkmate")
  +   library("mlr3")
  +   library("mlr3pipelines")
  +   library("mlr3fairness")
  +   test_check("mlr3fairness")
  + }
  [1] "fairness.acc"
  [1] "fairness.mse"
  [1] "fairness.fnr"
  [1] "fairness.fpr"
  [1] "fairness.tnr"
  [1] "fairness.tpr"
  [1] "fairness.npv"
  [1] "fairness.ppv"
  [1] "fairness.fomr"
  [1] "fairness.fp"
  [1] "fairness.tp"
  [1] "fairness.tn"
  [1] "fairness.fn"
  [1] "fairness.pp"
  [1] "fairness.equalized_odds"
  [1] "fairness.predictive_parity"
  [1] "fairness.acc_eod=.05"
  [1] "fairness.acc_ppv=.05"
  [1] "fairness.acc"
  [1] "fairness.mse"
  [1] "fairness.fnr"
  [1] "fairness.fpr"
  [1] "fairness.tnr"
  [1] "fairness.tpr"
  [1] "fairness.npv"
  [1] "fairness.ppv"
  [1] "fairness.fomr"
  [1] "fairness.fp"
  [1] "fairness.tp"
  [1] "fairness.tn"
  [1] "fairness.fn"
  [1] "fairness.pp"
  [1] "fairness.equalized_odds"
  [1] "fairness.predictive_parity"
  [1] "fairness.acc_eod=.05"
  [1] "fairness.acc_ppv=.05"
  [1] "fairness.acc"
  [1] "fairness.mse"
  [1] "fairness.fnr"
  [1] "fairness.fpr"
  [1] "fairness.tnr"
  [1] "fairness.tpr"
  [1] "fairness.npv"
  [1] "fairness.ppv"
  [1] "fairness.fomr"
  [1] "fairness.fp"
  [1] "fairness.tp"
  [1] "fairness.tn"
  [1] "fairness.fn"
  [1] "fairness.pp"
  [1] "fairness.equalized_odds"
  [1] "fairness.predictive_parity"
  [1] "fairness.acc_eod=.05"
  [1] "fairness.acc_ppv=.05"
  Saving _problems/test_visualizations-6.R
  Saving _problems/test_visualizations-30.R
  Saving _problems/test_visualizations-52.R
  [ FAIL 3 | WARN 0 | SKIP 30 | PASS 286 ]
  
  ══ Skipped tests (30) ══════════════════════════════════════════════════════════
  • On CRAN (30): 'test_datasets.R:16:3', 'test_datasets.R:32:3',
    'test_datasets.R:47:3', 'test_learners_fairml.R:2:5',
    'test_learners_fairml.R:10:5', 'test_learners_fairml.R:21:5',
    'test_learners_fairml.R:33:5', 'test_learners_fairml.R:43:5',
    'test_learners_fairml_ptas.R:2:5', 'test_learners_fairml_ptas.R:18:5',
    'test_measure_subgroup.R:47:3', 'test_measure_subgroup.R:66:3',
    'test_pipeop_eod.R:2:3', 'test_pipeop_eod.R:17:3', 'test_pipeop_eod.R:57:3',
    'test_pipeop_explicit_pta.R:3:5', 'test_pipeop_explicit_pta.R:17:5',
    'test_pipeop_reweighing.R:2:3', 'test_pipeop_reweighing.R:15:3',
    'test_pipeop_reweighing.R:25:3', 'test_pipeop_reweighing.R:34:3',
    'test_pipeop_reweighing.R:51:3', 'test_pipeop_reweighing.R:61:3',
    'test_report_modelcard_datasheet.R:2:3',
    'test_report_modelcard_datasheet.R:18:3',
    'test_report_modelcard_datasheet.R:34:3',
    'test_use_modelcard_datasheet.R:2:3', 'test_use_modelcard_datasheet.R:17:3',
    'test_use_modelcard_datasheet.R:31:3', 'test_write_files.R:2:3'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test_visualizations.R:6:3'): fairness_accuracy_tradeoff ─────────────
  Error in ``[.data.table`(data, , `:=`("task_hash", task[[1L]]$hash), by = "uhash")`: attempt access index 9/9 in VECTOR_ELT
  Backtrace:
      ▆
   1. └─mlr3fairness:::test_bmr() at test_visualizations.R:6:3
   2.   └─mlr3::benchmark(...) at ./helper_data.R:34:3
   3.     └─ResultData$new(grid, data_extra, store_backends = store_backends)
   4.       └─mlr3 (local) initialize(...)
   5.         └─mlr3:::.__ResultData__initialize(...)
   6.           ├─data[, `:=`("task_hash", task[[1L]]$hash), by = "uhash"]
   7.           └─data.table:::`[.data.table`(...)
  ── Error ('test_visualizations.R:30:3'): compare_metrics ───────────────────────
  Error in ``[.data.table`(data, , `:=`("task_hash", task[[1L]]$hash), by = "uhash")`: attempt access index 9/9 in VECTOR_ELT
  Backtrace:
      ▆
   1. └─mlr3fairness:::test_bmr() at test_visualizations.R:30:3
   2.   └─mlr3::benchmark(...) at ./helper_data.R:34:3
   3.     └─ResultData$new(grid, data_extra, store_backends = store_backends)
   4.       └─mlr3 (local) initialize(...)
   5.         └─mlr3:::.__ResultData__initialize(...)
   6.           ├─data[, `:=`("task_hash", task[[1L]]$hash), by = "uhash"]
   7.           └─data.table:::`[.data.table`(...)
  ── Error ('test_visualizations.R:52:3'): prediction_density ────────────────────
  Error in ``[.data.table`(data, , `:=`("task_hash", task[[1L]]$hash), by = "uhash")`: attempt access index 9/9 in VECTOR_ELT
  Backtrace:
      ▆
   1. └─mlr3fairness:::test_bmr() at test_visualizations.R:52:3
   2.   └─mlr3::benchmark(...) at ./helper_data.R:34:3
   3.     └─ResultData$new(grid, data_extra, store_backends = store_backends)
   4.       └─mlr3 (local) initialize(...)
   5.         └─mlr3:::.__ResultData__initialize(...)
   6.           ├─data[, `:=`("task_hash", task[[1L]]$hash), by = "uhash"]
   7.           └─data.table:::`[.data.table`(...)
  
  [ FAIL 3 | WARN 0 | SKIP 30 | PASS 286 ]
  Error:
  ! Test failures.
  Execution halted