Running 'testthat.R' [20s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > data.table::setDTthreads(1L)
  > if(require(testthat))test_check("mlr3resampling")
  Loading required package: testthat
  Loading required package: mlr3resampling
  INFO  [00:05:13.771] [bbotk] Starting to optimize 0 parameter(s) with '<TunerBatchInternal>' and '<TerminatorEvals> [n_evals=1, k=0]'
  INFO  [00:05:13.854] [bbotk] Evaluating 1 configuration(s)
  INFO  [00:05:13.889] [mlr3] Running benchmark with 1 resampling iterations
  INFO  [00:05:14.084] [mlr3] Applying learner 'regr.mlp' on task 'easy' (iter 1/1)
  INFO  [00:05:16.250] [bbotk] Starting to optimize 0 parameter(s) with '<TunerBatchInternal>' and '<TerminatorEvals> [n_evals=1, k=0]'
  INFO  [00:05:16.256] [bbotk] Evaluating 1 configuration(s)
  INFO  [00:05:16.272] [mlr3] Running benchmark with 1 resampling iterations
  INFO  [00:05:16.314] [mlr3] Applying learner 'regr.mlp' on task 'easy' (iter 1/1)
  [ FAIL 2 | WARN 3 | SKIP 0 | PASS 101 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-CRAN.R:672:3'): mlr3torch history saved ────────────────────────
  <std::runtime_error/C++Error/error/condition>
  Error in `cpp_cuda_is_available()`: Lantern is not loaded. Please use `install_torch()` to install additional dependencies.
  Backtrace:
       ▆
    1. └─mlr3resampling::proj_compute(pkg.proj.dir) at test-CRAN.R:672:3
    2.   └─this.learner$train(this.task, set_rows("train"))
    3.     └─mlr3:::.__Learner__train(...)
    4.       └─mlr3:::learner_train(...)
    5.         └─mlr3misc::encapsulate(...)
    6.           ├─mlr3misc::invoke(...)
    7.           │ └─base::eval.parent(expr, n = 1L)
    8.           │   └─base::eval(expr, p)
    9.           │     └─base::eval(expr, p)
   10.           └─mlr3 (local) .f(learner = `<S3: AutoTuner>`, task = `<S3: TaskRegr>`)
   11.             └─get_private(learner)$.train(task)
   12.               └─mlr3tuning:::.__AutoTuner__.train(...)
   13.                 └─self$tuner$optimize(instance)
   14.                   └─mlr3tuning:::.__TunerBatch__optimize(...)
   15.                     └─bbotk::optimize_batch_default(inst, self)
   16.                       ├─base::tryCatch(...)
   17.                       │ └─base (local) tryCatchList(expr, classes, parentenv, handlers)
   18.                       │   └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
   19.                       │     └─base (local) doTryCatch(return(expr), name, parentenv, handler)
   20.                       └─get_private(optimizer)$.optimize(instance)
   21.                         └─mlr3tuning:::.__TunerBatchInternal__.optimize(...)
   22.                           └─inst$eval_batch(data.table())
   23.                             └─bbotk:::.__OptimInstanceBatch__eval_batch(...)
   24.                               └─self$objective$eval_many(list(list()))
   25.                                 └─bbotk:::.__Objective__eval_many(...)
   26.                                   ├─mlr3misc::invoke(private$.eval_many, xss = xss, .args = self$constants$values)
   27.                                   │ └─base::eval.parent(expr, n = 1L)
   28.                                   │   └─base::eval(expr, p)
   29.                                   │     └─base::eval(expr, p)
   30.                                   └─private$.eval_many(xss = xss, resampling = `<list>`)
   31.                                     └─mlr3tuning:::.__ObjectiveTuningBatch__.eval_many(...)
   32.                                       └─mlr3::benchmark(...)
   33.                                         └─mlr3:::future_map(...)
   34.                                           └─future.apply::future_mapply(...)
   35.                                             └─future.apply:::future_xapply(...)
   36.                                               └─base::tryCatch(...)
   37.                                                 └─base (local) tryCatchList(expr, classes, parentenv, handlers)
   38.                                                   └─base (local) tryCatchOne(...)
   39.                                                     └─value[[3L]](cond)
   40.                                                       └─future.apply:::onError(e, futures = fs, debug = debug)
  ── Error ('test-CRAN.R:775:3'): mlr3torch history and weights saved ────────────
  <std::runtime_error/C++Error/error/condition>
  Error in `cpp_cuda_is_available()`: Lantern is not loaded. Please use `install_torch()` to install additional dependencies.
  Backtrace:
       ▆
    1. └─mlr3resampling::proj_compute_until_done(pkg.proj.dir) at test-CRAN.R:775:3
    2.   └─mlr3resampling::proj_compute(proj_dir, verbose = verbose)
    3.     └─this.learner$train(this.task, set_rows("train"))
    4.       └─mlr3:::.__Learner__train(...)
    5.         └─mlr3:::learner_train(...)
    6.           └─mlr3misc::encapsulate(...)
    7.             ├─mlr3misc::invoke(...)
    8.             │ └─base::eval.parent(expr, n = 1L)
    9.             │   └─base::eval(expr, p)
   10.             │     └─base::eval(expr, p)
   11.             └─mlr3 (local) .f(learner = `<S3: AutoTuner>`, task = `<S3: TaskRegr>`)
   12.               └─get_private(learner)$.train(task)
   13.                 └─mlr3tuning:::.__AutoTuner__.train(...)
   14.                   └─self$tuner$optimize(instance)
   15.                     └─mlr3tuning:::.__TunerBatch__optimize(...)
   16.                       └─bbotk::optimize_batch_default(inst, self)
   17.                         ├─base::tryCatch(...)
   18.                         │ └─base (local) tryCatchList(expr, classes, parentenv, handlers)
   19.                         │   └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
   20.                         │     └─base (local) doTryCatch(return(expr), name, parentenv, handler)
   21.                         └─get_private(optimizer)$.optimize(instance)
   22.                           └─mlr3tuning:::.__TunerBatchInternal__.optimize(...)
   23.                             └─inst$eval_batch(data.table())
   24.                               └─bbotk:::.__OptimInstanceBatch__eval_batch(...)
   25.                                 └─self$objective$eval_many(list(list()))
   26.                                   └─bbotk:::.__Objective__eval_many(...)
   27.                                     ├─mlr3misc::invoke(private$.eval_many, xss = xss, .args = self$constants$values)
   28.                                     │ └─base::eval.parent(expr, n = 1L)
   29.                                     │   └─base::eval(expr, p)
   30.                                     │     └─base::eval(expr, p)
   31.                                     └─private$.eval_many(xss = xss, resampling = `<list>`)
   32.                                       └─mlr3tuning:::.__ObjectiveTuningBatch__.eval_many(...)
   33.                                         └─mlr3::benchmark(...)
   34.                                           └─mlr3:::future_map(...)
   35.                                             └─future.apply::future_mapply(...)
   36.                                               └─future.apply:::future_xapply(...)
   37.                                                 └─base::tryCatch(...)
   38.                                                   └─base (local) tryCatchList(expr, classes, parentenv, handlers)
   39.                                                     └─base (local) tryCatchOne(...)
   40.                                                       └─value[[3L]](cond)
   41.                                                         └─future.apply:::onError(e, futures = fs, debug = debug)
  
  [ FAIL 2 | WARN 3 | SKIP 0 | PASS 101 ]
  Error: Test failures
  Execution halted