Running ‘testthat.R’ [171s/146s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library("checkmate")
  > library("testthat")
  > library("mlr3")
  > library("paradox")
  > library("mlr3pipelines")
  > 
  > test_check("mlr3pipelines")
  Starting 2 test processes
  ══ Skipped tests ═══════════════════════════════════════════════════════════════
  ● On CRAN (76)
  ● empty test (2)
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error (test_pipeop_tunethreshold.R:9:3): threshold works for multiclass ─────
  Error: Assertion on 'as.list(res)[self$codomain$ids()]' failed: Must have names, but is NA at position 1.
  Backtrace:
       █
    1. ├─po_thr$train(res)
    2. │ └─mlr3pipelines:::.__PipeOpTuneThreshold__train(...)
    3. │   └─private$.optimize_objfun(pred)
    4. │     └─mlr3pipelines:::.__PipeOpTuneThreshold__.optimize_objfun(...)
    5. │       └─optimizer$optimize(inst)
    6. │         └─bbotk:::.__Optimizer__optimize(...)
    7. │           └─bbotk::optimize_default(inst, self, private)
    8. │             ├─base::tryCatch(...)
    9. │             │ └─base:::tryCatchList(expr, classes, parentenv, handlers)
   10. │             │   └─base:::tryCatchOne(expr, names, parentenv, handlers[[1L]])
   11. │             │     └─base:::doTryCatch(return(expr), name, parentenv, handler)
   12. │             └─private$.optimize(inst)
   13. │               └─bbotk:::.__OptimizerGenSA__.optimize(...)
   14. │                 └─GenSA::GenSA(...)
   15. └─(function (par) ...
   16.   └─bbotk:::fn(par, ...)
   17.     └─bbotk:::.__OptimInstance__objective_function(...)
   18.       └─private$.objective_function(x, self, self$objective_multiplicator)
   19.         └─inst$eval_batch(xdt)
   20.           └─bbotk:::.__OptimInstance__eval_batch(...)
   21.             └─self$objective$eval_many(xss_trafoed)
   22.               └─bbotk:::.__Objective__eval_many(...)
   23.                 └─private$.eval_many(xss)
   24.                   └─bbotk:::.__Objective__.eval_many(...)
   25.                     └─mlr3misc::map_dtr(...)
   26.                       ├─data.table::rbindlist(...)
   27.                       ├─base::unname(map(.x, .f, ...))
   28.                       └─mlr3misc::map(.x, .f, ...)
   29.                         └─base::lapply(.x, .f, ...)
   30.                           └─bbotk:::FUN(X[[i]], ...)
   31.                             └─self$eval(xs)
   32.                               └─bbotk:::.__ObjectiveRFun__eval(...)
   33.                                 └─self$codomain$assert(as.list(res)[self$codomain$ids()])
   34.                                   └─paradox:::.__ParamSet__assert(...)
   35.                                     └─checkmate::makeAssertion(xs, self$check(xs), .var.name, NULL)
   36.                                       └─checkmate:::mstop(...)
  ── Error (test_pipeop_tunethreshold.R:25:3): threshold works for binary ────────
  Error: Assertion on 'as.list(res)[self$codomain$ids()]' failed: Must have names, but is NA at position 1.
  Backtrace:
       █
    1. ├─po_thr$train(res)
    2. │ └─mlr3pipelines:::.__PipeOpTuneThreshold__train(...)
    3. │   └─private$.optimize_objfun(pred)
    4. │     └─mlr3pipelines:::.__PipeOpTuneThreshold__.optimize_objfun(...)
    5. │       └─optimizer$optimize(inst)
    6. │         └─bbotk:::.__Optimizer__optimize(...)
    7. │           └─bbotk::optimize_default(inst, self, private)
    8. │             ├─base::tryCatch(...)
    9. │             │ └─base:::tryCatchList(expr, classes, parentenv, handlers)
   10. │             │   └─base:::tryCatchOne(expr, names, parentenv, handlers[[1L]])
   11. │             │     └─base:::doTryCatch(return(expr), name, parentenv, handler)
   12. │             └─private$.optimize(inst)
   13. │               └─bbotk:::.__OptimizerGenSA__.optimize(...)
   14. │                 └─GenSA::GenSA(...)
   15. └─(function (par) ...
   16.   └─bbotk:::fn(par, ...)
   17.     └─bbotk:::.__OptimInstance__objective_function(...)
   18.       └─private$.objective_function(x, self, self$objective_multiplicator)
   19.         └─inst$eval_batch(xdt)
   20.           └─bbotk:::.__OptimInstance__eval_batch(...)
   21.             └─self$objective$eval_many(xss_trafoed)
   22.               └─bbotk:::.__Objective__eval_many(...)
   23.                 └─private$.eval_many(xss)
   24.                   └─bbotk:::.__Objective__.eval_many(...)
   25.                     └─mlr3misc::map_dtr(...)
   26.                       ├─data.table::rbindlist(...)
   27.                       ├─base::unname(map(.x, .f, ...))
   28.                       └─mlr3misc::map(.x, .f, ...)
   29.                         └─base::lapply(.x, .f, ...)
   30.                           └─bbotk:::FUN(X[[i]], ...)
   31.                             └─self$eval(xs)
   32.                               └─bbotk:::.__ObjectiveRFun__eval(...)
   33.                                 └─self$codomain$assert(as.list(res)[self$codomain$ids()])
   34.                                   └─paradox:::.__ParamSet__assert(...)
   35.                                     └─checkmate::makeAssertion(xs, self$check(xs), .var.name, NULL)
   36.                                       └─checkmate:::mstop(...)
  
  [ FAIL 2 | WARN 0 | SKIP 78 | PASS 10000 ]
  Error: Test failures
  Execution halted