Running ‘testthat.R’ [55s/102s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > if (requireNamespace("testthat", quietly = TRUE)) {
  +   library("testthat")
  +   library("mlr3db")
  +   test_check("mlr3db")
  + }
  Loading required package: mlr3
  [ FAIL 9 | WARN 0 | SKIP 0 | PASS 1021 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test_as_sqlite_backend.R:8:3'): data ────────────────────────────────
  Error in `private$.data$ops`: The `$` method of <tbl_lazy> is for internal use only.
  i Use `dplyr::pull()` to get the values in a column.
  Backtrace:
       ▆
    1. ├─global expect_backend(b) at test_as_sqlite_backend.R:8:2
    2. │ ├─checkmate::expect_string(b$hash)
    3. │ │ └─checkmate::checkString(...)
    4. │ │   └─... %and% ...
    5. │ │     └─base::isTRUE(lhs)
    6. │ ├─b$hash
    7. │ └─global `$.R6`(b, "hash")
    8. │   └─base::get(name, envir = x)
    9. └─mlr3 (local) `<fn>`()
   10.   └─mlr3:::.__DataBackend__hash(...)
   11.     └─private$.calculate_hash()
   12.       └─mlr3db:::.__DataBackendDplyr__.calculate_hash(...)
   13.         ├─mlr3misc::calculate_hash(private$.data$ops, private$.data$con)
   14.         │ ├─digest::digest(...)
   15.         │ │ └─base::serialize(object, connection = NULL, ascii = ascii, version = serializeVersion)
   16.         │ └─base::lapply(...)
   17.         ├─private$.data$ops
   18.         └─dbplyr:::`$.tbl_lazy`(private$.data, "ops")
   19.           └─cli::cli_abort(...)
   20.             └─rlang::abort(...)
  ── Error ('test_as_sqlite_backend.R:16:3'): DataBackend ────────────────────────
  Error in `private$.data$ops`: The `$` method of <tbl_lazy> is for internal use only.
  i Use `dplyr::pull()` to get the values in a column.
  Backtrace:
       ▆
    1. ├─global expect_backend(b) at test_as_sqlite_backend.R:16:2
    2. │ ├─checkmate::expect_string(b$hash)
    3. │ │ └─checkmate::checkString(...)
    4. │ │   └─... %and% ...
    5. │ │     └─base::isTRUE(lhs)
    6. │ ├─b$hash
    7. │ └─global `$.R6`(b, "hash")
    8. │   └─base::get(name, envir = x)
    9. └─mlr3 (local) `<fn>`()
   10.   └─mlr3:::.__DataBackend__hash(...)
   11.     └─private$.calculate_hash()
   12.       └─mlr3db:::.__DataBackendDplyr__.calculate_hash(...)
   13.         ├─mlr3misc::calculate_hash(private$.data$ops, private$.data$con)
   14.         │ ├─digest::digest(...)
   15.         │ │ └─base::serialize(object, connection = NULL, ascii = ascii, version = serializeVersion)
   16.         │ └─base::lapply(...)
   17.         ├─private$.data$ops
   18.         └─dbplyr:::`$.tbl_lazy`(private$.data, "ops")
   19.           └─cli::cli_abort(...)
   20.             └─rlang::abort(...)
  ── Error ('test_as_sqlite_backend.R:23:3'): Task ───────────────────────────────
  Error in `private$.data$ops`: The `$` method of <tbl_lazy> is for internal use only.
  i Use `dplyr::pull()` to get the values in a column.
  Backtrace:
       ▆
    1. ├─global expect_backend(task$backend) at test_as_sqlite_backend.R:23:2
    2. │ ├─checkmate::expect_string(b$hash)
    3. │ │ └─checkmate::checkString(...)
    4. │ │   └─... %and% ...
    5. │ │     └─base::isTRUE(lhs)
    6. │ ├─b$hash
    7. │ └─global `$.R6`(b, "hash")
    8. │   └─base::get(name, envir = x)
    9. └─mlr3 (local) `<fn>`()
   10.   └─mlr3:::.__DataBackend__hash(...)
   11.     └─private$.calculate_hash()
   12.       └─mlr3db:::.__DataBackendDplyr__.calculate_hash(...)
   13.         ├─mlr3misc::calculate_hash(private$.data$ops, private$.data$con)
   14.         │ ├─digest::digest(...)
   15.         │ │ └─base::serialize(object, connection = NULL, ascii = ascii, version = serializeVersion)
   16.         │ └─base::lapply(...)
   17.         ├─private$.data$ops
   18.         └─dbplyr:::`$.tbl_lazy`(private$.data, "ops")
   19.           └─cli::cli_abort(...)
   20.             └─rlang::abort(...)
  ── Error ('test_dplyr.R:19:3'): valid DataBackend (tbl/sqlite) ─────────────────
  Error in `private$.data$ops`: The `$` method of <tbl_lazy> is for internal use only.
  i Use `dplyr::pull()` to get the values in a column.
  Backtrace:
       ▆
    1. ├─global expect_backend(b) at test_dplyr.R:19:2
    2. │ ├─checkmate::expect_string(b$hash)
    3. │ │ └─checkmate::checkString(...)
    4. │ │   └─... %and% ...
    5. │ │     └─base::isTRUE(lhs)
    6. │ ├─b$hash
    7. │ └─global `$.R6`(b, "hash")
    8. │   └─base::get(name, envir = x)
    9. └─mlr3 (local) `<fn>`()
   10.   └─mlr3:::.__DataBackend__hash(...)
   11.     └─private$.calculate_hash()
   12.       └─mlr3db:::.__DataBackendDplyr__.calculate_hash(...)
   13.         ├─mlr3misc::calculate_hash(private$.data$ops, private$.data$con)
   14.         │ ├─digest::digest(...)
   15.         │ │ └─base::serialize(object, connection = NULL, ascii = ascii, version = serializeVersion)
   16.         │ └─base::lapply(...)
   17.         ├─private$.data$ops
   18.         └─dbplyr:::`$.tbl_lazy`(private$.data, "ops")
   19.           └─cli::cli_abort(...)
   20.             └─rlang::abort(...)
  ── Error ('test_dplyr.R:28:3'): valid DataBackend (as_sqlite_backend) ──────────
  Error in `private$.data$ops`: The `$` method of <tbl_lazy> is for internal use only.
  i Use `dplyr::pull()` to get the values in a column.
  Backtrace:
       ▆
    1. ├─global expect_backend(b) at test_dplyr.R:28:2
    2. │ ├─checkmate::expect_string(b$hash)
    3. │ │ └─checkmate::checkString(...)
    4. │ │   └─... %and% ...
    5. │ │     └─base::isTRUE(lhs)
    6. │ ├─b$hash
    7. │ └─global `$.R6`(b, "hash")
    8. │   └─base::get(name, envir = x)
    9. └─mlr3 (local) `<fn>`()
   10.   └─mlr3:::.__DataBackend__hash(...)
   11.     └─private$.calculate_hash()
   12.       └─mlr3db:::.__DataBackendDplyr__.calculate_hash(...)
   13.         ├─mlr3misc::calculate_hash(private$.data$ops, private$.data$con)
   14.         │ ├─digest::digest(...)
   15.         │ │ └─base::serialize(object, connection = NULL, ascii = ascii, version = serializeVersion)
   16.         │ └─base::lapply(...)
   17.         ├─private$.data$ops
   18.         └─dbplyr:::`$.tbl_lazy`(private$.data, "ops")
   19.           └─cli::cli_abort(...)
   20.             └─rlang::abort(...)
  ── Error ('test_reconnect.R:20:3'): expectations + dplyr ───────────────────────
  Error in `private$.data$ops`: The `$` method of <tbl_lazy> is for internal use only.
  i Use `dplyr::pull()` to get the values in a column.
  Backtrace:
       ▆
    1. ├─global expect_backend(b2) at test_reconnect.R:20:2
    2. │ ├─checkmate::expect_string(b$hash)
    3. │ │ └─checkmate::checkString(...)
    4. │ │   └─... %and% ...
    5. │ │     └─base::isTRUE(lhs)
    6. │ ├─b$hash
    7. │ └─global `$.R6`(b, "hash")
    8. │   └─base::get(name, envir = x)
    9. └─mlr3 (local) `<fn>`()
   10.   └─mlr3:::.__DataBackend__hash(...)
   11.     └─private$.calculate_hash()
   12.       └─mlr3db:::.__DataBackendDplyr__.calculate_hash(...)
   13.         ├─mlr3misc::calculate_hash(private$.data$ops, private$.data$con)
   14.         │ ├─digest::digest(...)
   15.         │ │ └─base::serialize(object, connection = NULL, ascii = ascii, version = serializeVersion)
   16.         │ └─base::lapply(...)
   17.         ├─private$.data$ops
   18.         └─dbplyr:::`$.tbl_lazy`(private$.data, "ops")
   19.           └─cli::cli_abort(...)
   20.             └─rlang::abort(...)
  ── Error ('test_train_predict_dplyr.R:10:3'): single step train + predict ──────
  Error in `private$.data$ops`: The `$` method of <tbl_lazy> is for internal use only.
  i Use `dplyr::pull()` to get the values in a column.
  Backtrace:
       ▆
    1. ├─global expect_learner(learner$train(task, 1:120)) at test_train_predict_dplyr.R:10:2
    2. │ └─checkmate::expect_r6(lrn, "Learner", cloneable = TRUE)
    3. │   └─checkmate::checkR6(...)
    4. ├─learner$train(task, 1:120)
    5. │ └─mlr3:::.__Learner__train(...)
    6. │   └─mlr3:::learner_train(...)
    7. │     ├─mlr3misc::insert_named(...)
    8. │     ├─task$hash
    9. │     └─global `$.R6`(task, "hash")
   10. │       └─base::get(name, envir = x)
   11. ├─mlr3 (local) `<fn>`()
   12. │ └─mlr3:::.__Task__hash(...)
   13. │   ├─private$.hash %??% ...
   14. │   ├─mlr3misc::calculate_hash(...)
   15. │   │ ├─digest::digest(...)
   16. │   │ │ └─base::serialize(object, connection = NULL, ascii = ascii, version = serializeVersion)
   17. │   │ └─base::lapply(...)
   18. │   ├─self$backend$hash
   19. │   └─global `$.R6`(self$backend, "hash")
   20. │     └─base::get(name, envir = x)
   21. └─mlr3 (local) `<fn>`()
   22.   └─mlr3:::.__DataBackend__hash(...)
   23.     └─private$.calculate_hash()
   24.       └─mlr3db:::.__DataBackendDplyr__.calculate_hash(...)
   25.         ├─mlr3misc::calculate_hash(private$.data$ops, private$.data$con)
   26.         │ ├─digest::digest(...)
   27.         │ │ └─base::serialize(object, connection = NULL, ascii = ascii, version = serializeVersion)
   28.         │ └─base::lapply(...)
   29.         ├─private$.data$ops
   30.         └─dbplyr:::`$.tbl_lazy`(private$.data, "ops")
   31.           └─cli::cli_abort(...)
   32.             └─rlang::abort(...)
  ── Error ('test_train_predict_dplyr.R:20:5'): resample works ───────────────────
  Error in `private$.data$ops`: The `$` method of <tbl_lazy> is for internal use only.
  i Use `dplyr::pull()` to get the values in a column.
  Backtrace:
       ▆
    1. ├─global with_future(...) at test_train_predict_dplyr.R:19:2
    2. │ └─base::force(expr)
    3. ├─mlr3::resample(task, learner, mlr3::rsmp("cv", folds = 3)) at test_train_predict_dplyr.R:20:4
    4. │ └─resampling$instantiate(task)
    5. │   └─mlr3:::.__Resampling__instantiate(...)
    6. │     ├─task$hash
    7. │     └─global `$.R6`(task, "hash")
    8. │       └─base::get(name, envir = x)
    9. ├─mlr3 (local) `<fn>`()
   10. │ └─mlr3:::.__Task__hash(...)
   11. │   ├─private$.hash %??% ...
   12. │   ├─mlr3misc::calculate_hash(...)
   13. │   │ ├─digest::digest(...)
   14. │   │ │ └─base::serialize(object, connection = NULL, ascii = ascii, version = serializeVersion)
   15. │   │ └─base::lapply(...)
   16. │   ├─self$backend$hash
   17. │   └─global `$.R6`(self$backend, "hash")
   18. │     └─base::get(name, envir = x)
   19. └─mlr3 (local) `<fn>`()
   20.   └─mlr3:::.__DataBackend__hash(...)
   21.     └─private$.calculate_hash()
   22.       └─mlr3db:::.__DataBackendDplyr__.calculate_hash(...)
   23.         ├─mlr3misc::calculate_hash(private$.data$ops, private$.data$con)
   24.         │ ├─digest::digest(...)
   25.         │ │ └─base::serialize(object, connection = NULL, ascii = ascii, version = serializeVersion)
   26.         │ └─base::lapply(...)
   27.         ├─private$.data$ops
   28.         └─dbplyr:::`$.tbl_lazy`(private$.data, "ops")
   29.           └─cli::cli_abort(...)
   30.             └─rlang::abort(...)
  ── Error ('test_train_predict_dplyr.R:26:3'): predict_newdata ──────────────────
  Error in `private$.data$ops`: The `$` method of <tbl_lazy> is for internal use only.
  i Use `dplyr::pull()` to get the values in a column.
  Backtrace:
       ▆
    1. ├─learner$train(task, 1:120) at test_train_predict_dplyr.R:26:2
    2. │ └─mlr3:::.__Learner__train(...)
    3. │   └─mlr3:::learner_train(...)
    4. │     ├─mlr3misc::insert_named(...)
    5. │     ├─task$hash
    6. │     └─global `$.R6`(task, "hash")
    7. │       └─base::get(name, envir = x)
    8. ├─mlr3 (local) `<fn>`()
    9. │ └─mlr3:::.__Task__hash(...)
   10. │   ├─private$.hash %??% ...
   11. │   ├─mlr3misc::calculate_hash(...)
   12. │   │ ├─digest::digest(...)
   13. │   │ │ └─base::serialize(object, connection = NULL, ascii = ascii, version = serializeVersion)
   14. │   │ └─base::lapply(...)
   15. │   ├─self$backend$hash
   16. │   └─global `$.R6`(self$backend, "hash")
   17. │     └─base::get(name, envir = x)
   18. └─mlr3 (local) `<fn>`()
   19.   └─mlr3:::.__DataBackend__hash(...)
   20.     └─private$.calculate_hash()
   21.       └─mlr3db:::.__DataBackendDplyr__.calculate_hash(...)
   22.         ├─mlr3misc::calculate_hash(private$.data$ops, private$.data$con)
   23.         │ ├─digest::digest(...)
   24.         │ │ └─base::serialize(object, connection = NULL, ascii = ascii, version = serializeVersion)
   25.         │ └─base::lapply(...)
   26.         ├─private$.data$ops
   27.         └─dbplyr:::`$.tbl_lazy`(private$.data, "ops")
   28.           └─cli::cli_abort(...)
   29.             └─rlang::abort(...)
  
  [ FAIL 9 | WARN 0 | SKIP 0 | PASS 1021 ]
  Error: Test failures
  In addition: There were 27 warnings (use warnings() to see them)
  Execution halted