Running ‘testthat.R’ [44s/96s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > if (requireNamespace("testthat", quietly = TRUE)) {
  +   library("checkmate")
  +   library("testthat")
  +   library("mlr3spatial")
  +   test_check("mlr3spatial")
  + }
  Loading required package: mlr3
  Loading required package: sp
  [ FAIL 33 | WARN 1 | SKIP 0 | PASS 90 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test_DataBackendRaster.R:9:3'): DataBackendRaster works with a single numeric layer ──
  Error in `self$data_formats <- "data.table"`: cannot add bindings to a locked environment
  Backtrace:
      ▆
   1. └─DataBackendRaster$new(stack) at test_DataBackendRaster.R:9:3
   2.   └─mlr3spatial (local) initialize(...)
   3.     └─mlr3spatial:::.__DataBackendRaster__initialize(...)
  ── Error ('test_DataBackendRaster.R:62:3'): DataBackendRaster works with a single factor layer ──
  Error in `self$data_formats <- "data.table"`: cannot add bindings to a locked environment
  Backtrace:
      ▆
   1. └─DataBackendRaster$new(stack) at test_DataBackendRaster.R:62:3
   2.   └─mlr3spatial (local) initialize(...)
   3.     └─mlr3spatial:::.__DataBackendRaster__initialize(...)
  ── Error ('test_DataBackendRaster.R:110:3'): DataBackendRaster works with a numeric and a factor layer ──
  Error in `self$data_formats <- "data.table"`: cannot add bindings to a locked environment
  Backtrace:
      ▆
   1. └─DataBackendRaster$new(stack) at test_DataBackendRaster.R:110:3
   2.   └─mlr3spatial (local) initialize(...)
   3.     └─mlr3spatial:::.__DataBackendRaster__initialize(...)
  ── Error ('test_DataBackendRaster.R:173:3'): DataBackendRaster works with multiple numeric and factor layers ──
  Error in `self$data_formats <- "data.table"`: cannot add bindings to a locked environment
  Backtrace:
      ▆
   1. └─DataBackendRaster$new(stack) at test_DataBackendRaster.R:173:3
   2.   └─mlr3spatial (local) initialize(...)
   3.     └─mlr3spatial:::.__DataBackendRaster__initialize(...)
  ── Error ('test_DataBackendRaster.R:245:3'): data access works ─────────────────
  Error in `self$data_formats <- "data.table"`: cannot add bindings to a locked environment
  Backtrace:
      ▆
   1. └─DataBackendRaster$new(stack) at test_DataBackendRaster.R:245:3
   2.   └─mlr3spatial (local) initialize(...)
   3.     └─mlr3spatial:::.__DataBackendRaster__initialize(...)
  ── Error ('test_DataBackendRaster.R:274:3'): data prototyp works ───────────────
  Error in `self$data_formats <- "data.table"`: cannot add bindings to a locked environment
  Backtrace:
      ▆
   1. └─DataBackendRaster$new(stack) at test_DataBackendRaster.R:274:3
   2.   └─mlr3spatial (local) initialize(...)
   3.     └─mlr3spatial:::.__DataBackendRaster__initialize(...)
  ── Error ('test_DataBackendRaster.R:286:3'): in memory rasters work ────────────
  Error in `self$data_formats <- "data.table"`: cannot add bindings to a locked environment
  Backtrace:
      ▆
   1. └─DataBackendRaster$new(stack) at test_DataBackendRaster.R:286:3
   2.   └─mlr3spatial (local) initialize(...)
   3.     └─mlr3spatial:::.__DataBackendRaster__initialize(...)
  ── Error ('test_DataBackendRaster.R:345:3'): in memory and disk rasters work ───
  Error in `self$data_formats <- "data.table"`: cannot add bindings to a locked environment
  Backtrace:
      ▆
   1. └─DataBackendRaster$new(stack) at test_DataBackendRaster.R:345:3
   2.   └─mlr3spatial (local) initialize(...)
   3.     └─mlr3spatial:::.__DataBackendRaster__initialize(...)
  ── Error ('test_DataBackendRaster.R:404:3'): as_data_backend works on SpatRaster objects ──
  Error in `self$data_formats <- "data.table"`: cannot add bindings to a locked environment
  Backtrace:
      ▆
   1. ├─checkmate::expect_class(as_data_backend(stack), "DataBackendRaster") at test_DataBackendRaster.R:404:3
   2. │ └─checkmate::checkClass(x, classes, ordered, null.ok)
   3. ├─mlr3::as_data_backend(stack)
   4. └─mlr3spatial::as_data_backend.SpatRaster(stack)
   5.   └─DataBackendRaster$new(data)
   6.     └─mlr3spatial (local) initialize(...)
   7.       └─mlr3spatial:::.__DataBackendRaster__initialize(...)
  ── Error ('test_DataBackendRaster.R:416:3'): as_data_backend works on stars objects ──
  Error in `self$data_formats <- "data.table"`: cannot add bindings to a locked environment
  Backtrace:
      ▆
   1. ├─checkmate::expect_class(as_data_backend(stack), "DataBackendRaster") at test_DataBackendRaster.R:416:3
   2. │ └─checkmate::checkClass(x, classes, ordered, null.ok)
   3. ├─mlr3::as_data_backend(stack)
   4. └─mlr3spatial::as_data_backend.stars(stack)
   5.   └─DataBackendRaster$new(data)
   6.     └─mlr3spatial (local) initialize(...)
   7.       └─mlr3spatial:::.__DataBackendRaster__initialize(...)
  ── Error ('test_DataBackendRaster.R:429:3'): as_data_backend works on RasterBrick objects ──
  Error in `self$data_formats <- "data.table"`: cannot add bindings to a locked environment
  Backtrace:
      ▆
   1. ├─checkmate::expect_class(as_data_backend(stack), "DataBackendRaster") at test_DataBackendRaster.R:429:3
   2. │ └─checkmate::checkClass(x, classes, ordered, null.ok)
   3. ├─mlr3::as_data_backend(stack)
   4. └─mlr3spatial::as_data_backend.RasterBrick(stack)
   5.   └─DataBackendRaster$new(data)
   6.     └─mlr3spatial (local) initialize(...)
   7.       └─mlr3spatial:::.__DataBackendRaster__initialize(...)
  ── Error ('test_DataBackendRaster.R:443:3'): as_data_backend works on RasterStack objects ──
  Error in `self$data_formats <- "data.table"`: cannot add bindings to a locked environment
  Backtrace:
      ▆
   1. ├─checkmate::expect_class(...) at test_DataBackendRaster.R:443:3
   2. │ └─checkmate::checkClass(x, classes, ordered, null.ok)
   3. ├─mlr3::as_data_backend(stack, target = "y")
   4. └─mlr3spatial::as_data_backend.RasterStack(stack, target = "y")
   5.   └─DataBackendRaster$new(data)
   6.     └─mlr3spatial (local) initialize(...)
   7.       └─mlr3spatial:::.__DataBackendRaster__initialize(...)
  ── Error ('test_DataBackendVector.R:5:3'): DataBackendVector works ─────────────
  Error in `self$data_formats <- "data.table"`: cannot add bindings to a locked environment
  Backtrace:
      ▆
   1. └─DataBackendVector$new(vector, primary_key = primary_key) at test_DataBackendVector.R:5:3
   2.   └─mlr3spatial (local) initialize(...)
   3.     └─mlr3spatial:::.__DataBackendVector__initialize(...)
  ── Error ('test_DataBackendVector.R:13:3'): as_data_backend.sf works ───────────
  Error in `self$data_formats <- "data.table"`: cannot add bindings to a locked environment
  Backtrace:
      ▆
   1. ├─mlr3::as_data_backend(vector) at test_DataBackendVector.R:13:3
   2. └─mlr3spatial::as_data_backend.sf(vector)
   3.   └─DataBackendVector$new(data, primary_key)
   4.     └─mlr3spatial (local) initialize(...)
   5.       └─mlr3spatial:::.__DataBackendVector__initialize(...)
  ── Error ('test_LearnerClassifSpatial.R:18:3'): LearnerClassifSpatial ignores observations with missing values ──
  Error in `self$data_formats <- "data.table"`: cannot add bindings to a locked environment
  Backtrace:
       ▆
    1. ├─mlr3::as_task_unsupervised(stack, id = "test") at test_LearnerClassifSpatial.R:18:3
    2. └─mlr3spatial:::as_task_unsupervised.SpatRaster(stack, id = "test")
    3.   └─TaskUnsupervised$new(id = id, backend = x, label = label)
    4.     └─mlr3 (local) initialize(...)
    5.       └─mlr3:::.__TaskUnsupervised__initialize(...)
    6.         └─super$initialize(...)
    7.           └─mlr3:::.__Task__initialize(...)
    8.             ├─mlr3::as_data_backend(backend)
    9.             └─mlr3spatial::as_data_backend.SpatRaster(backend)
   10.               └─DataBackendRaster$new(data)
   11.                 └─mlr3spatial (local) initialize(...)
   12.                   └─mlr3spatial:::.__DataBackendRaster__initialize(...)
  ── Error ('test_LearnerRegrSpatial.R:18:3'): LearnerRegrSpatial ignores observations with missing values ──
  Error in `self$data_formats <- "data.table"`: cannot add bindings to a locked environment
  Backtrace:
       ▆
    1. ├─mlr3::as_task_unsupervised(stack, id = "test") at test_LearnerRegrSpatial.R:18:3
    2. └─mlr3spatial:::as_task_unsupervised.SpatRaster(stack, id = "test")
    3.   └─TaskUnsupervised$new(id = id, backend = x, label = label)
    4.     └─mlr3 (local) initialize(...)
    5.       └─mlr3:::.__TaskUnsupervised__initialize(...)
    6.         └─super$initialize(...)
    7.           └─mlr3:::.__Task__initialize(...)
    8.             ├─mlr3::as_data_backend(backend)
    9.             └─mlr3spatial::as_data_backend.SpatRaster(backend)
   10.               └─DataBackendRaster$new(data)
   11.                 └─mlr3spatial (local) initialize(...)
   12.                   └─mlr3spatial:::.__DataBackendRaster__initialize(...)
  ── Error ('test_as_task_unsupervised.R:11:3'): as_task_unsupervised works on stars objects ──
  Error in `self$data_formats <- "data.table"`: cannot add bindings to a locked environment
  Backtrace:
       ▆
    1. ├─checkmate::expect_class(as_task_unsupervised(stack), "TaskUnsupervised") at test_as_task_unsupervised.R:11:3
    2. │ └─checkmate::checkClass(x, classes, ordered, null.ok)
    3. ├─mlr3::as_task_unsupervised(stack)
    4. └─mlr3spatial:::as_task_unsupervised.stars(stack)
    5.   └─TaskUnsupervised$new(id = id, backend = x, label = label)
    6.     └─mlr3 (local) initialize(...)
    7.       └─mlr3:::.__TaskUnsupervised__initialize(...)
    8.         └─super$initialize(...)
    9.           └─mlr3:::.__Task__initialize(...)
   10.             ├─mlr3::as_data_backend(backend)
   11.             └─mlr3spatial::as_data_backend.stars(backend)
   12.               └─DataBackendRaster$new(data)
   13.                 └─mlr3spatial (local) initialize(...)
   14.                   └─mlr3spatial:::.__DataBackendRaster__initialize(...)
  ── Error ('test_as_task_unsupervised.R:20:3'): as_task_unsupervised works on SpatRaster objects ──
  Error in `self$data_formats <- "data.table"`: cannot add bindings to a locked environment
  Backtrace:
       ▆
    1. ├─checkmate::expect_class(as_task_unsupervised(stack), "TaskUnsupervised") at test_as_task_unsupervised.R:20:3
    2. │ └─checkmate::checkClass(x, classes, ordered, null.ok)
    3. ├─mlr3::as_task_unsupervised(stack)
    4. └─mlr3spatial:::as_task_unsupervised.SpatRaster(stack)
    5.   └─TaskUnsupervised$new(id = id, backend = x, label = label)
    6.     └─mlr3 (local) initialize(...)
    7.       └─mlr3:::.__TaskUnsupervised__initialize(...)
    8.         └─super$initialize(...)
    9.           └─mlr3:::.__Task__initialize(...)
   10.             ├─mlr3::as_data_backend(backend)
   11.             └─mlr3spatial::as_data_backend.SpatRaster(backend)
   12.               └─DataBackendRaster$new(data)
   13.                 └─mlr3spatial (local) initialize(...)
   14.                   └─mlr3spatial:::.__DataBackendRaster__initialize(...)
  ── Error ('test_as_task_unsupervised.R:33:3'): as_task_unsupervised works on RasterBrick objects ──
  Error in `self$data_formats <- "data.table"`: cannot add bindings to a locked environment
  Backtrace:
       ▆
    1. ├─checkmate::expect_class(as_task_unsupervised(stack), "TaskUnsupervised") at test_as_task_unsupervised.R:33:3
    2. │ └─checkmate::checkClass(x, classes, ordered, null.ok)
    3. ├─mlr3::as_task_unsupervised(stack)
    4. └─mlr3spatial:::as_task_unsupervised.RasterBrick(stack)
    5.   └─TaskUnsupervised$new(id = id, backend = x, label = label)
    6.     └─mlr3 (local) initialize(...)
    7.       └─mlr3:::.__TaskUnsupervised__initialize(...)
    8.         └─super$initialize(...)
    9.           └─mlr3:::.__Task__initialize(...)
   10.             ├─mlr3::as_data_backend(backend)
   11.             └─mlr3spatial::as_data_backend.RasterBrick(backend)
   12.               └─DataBackendRaster$new(data)
   13.                 └─mlr3spatial (local) initialize(...)
   14.                   └─mlr3spatial:::.__DataBackendRaster__initialize(...)
  ── Error ('test_as_task_unsupervised.R:47:3'): as_task_unsupervised works on RasterStack objects ──
  Error in `self$data_formats <- "data.table"`: cannot add bindings to a locked environment
  Backtrace:
       ▆
    1. ├─checkmate::expect_class(as_task_unsupervised(stack), "TaskUnsupervised") at test_as_task_unsupervised.R:47:3
    2. │ └─checkmate::checkClass(x, classes, ordered, null.ok)
    3. ├─mlr3::as_task_unsupervised(stack)
    4. └─mlr3spatial:::as_task_unsupervised.RasterStack(stack)
    5.   └─TaskUnsupervised$new(id = id, backend = x, label = label)
    6.     └─mlr3 (local) initialize(...)
    7.       └─mlr3:::.__TaskUnsupervised__initialize(...)
    8.         └─super$initialize(...)
    9.           └─mlr3:::.__Task__initialize(...)
   10.             ├─mlr3::as_data_backend(backend)
   11.             └─mlr3spatial::as_data_backend.RasterStack(backend)
   12.               └─DataBackendRaster$new(data)
   13.                 └─mlr3spatial (local) initialize(...)
   14.                   └─mlr3spatial:::.__DataBackendRaster__initialize(...)
  ── Error ('test_as_task_unsupervised.R:54:3'): as_task_unsupervised works on sf objects ──
  Error in `self$data_formats <- "data.table"`: cannot add bindings to a locked environment
  Backtrace:
       ▆
    1. ├─checkmate::expect_class(as_task_unsupervised(vector), "TaskUnsupervised") at test_as_task_unsupervised.R:54:3
    2. │ └─checkmate::checkClass(x, classes, ordered, null.ok)
    3. ├─mlr3::as_task_unsupervised(vector)
    4. └─mlr3spatial:::as_task_unsupervised.sf(vector)
    5.   └─TaskUnsupervised$new(id = id, backend = x, label = label)
    6.     └─mlr3 (local) initialize(...)
    7.       └─mlr3:::.__TaskUnsupervised__initialize(...)
    8.         └─super$initialize(...)
    9.           └─mlr3:::.__Task__initialize(...)
   10.             ├─mlr3::as_data_backend(backend)
   11.             └─mlr3spatial::as_data_backend.sf(backend)
   12.               └─DataBackendVector$new(data, primary_key)
   13.                 └─mlr3spatial (local) initialize(...)
   14.                   └─mlr3spatial:::.__DataBackendVector__initialize(...)
  ── Error ('test_data.R:5:3'): categorical layer is set ─────────────────────────
  Error in `self$data_formats <- "data.table"`: cannot add bindings to a locked environment
  Backtrace:
       ▆
    1. ├─mlr3::as_task_unsupervised(stack) at test_data.R:5:3
    2. └─mlr3spatial:::as_task_unsupervised.SpatRaster(stack)
    3.   └─TaskUnsupervised$new(id = id, backend = x, label = label)
    4.     └─mlr3 (local) initialize(...)
    5.       └─mlr3:::.__TaskUnsupervised__initialize(...)
    6.         └─super$initialize(...)
    7.           └─mlr3:::.__Task__initialize(...)
    8.             ├─mlr3::as_data_backend(backend)
    9.             └─mlr3spatial::as_data_backend.SpatRaster(backend)
   10.               └─DataBackendRaster$new(data)
   11.                 └─mlr3spatial (local) initialize(...)
   12.                   └─mlr3spatial:::.__DataBackendRaster__initialize(...)
  ── Error ('test_predict_spatial.R:20:3'): predictions are written to raster ────
  Error in `self$data_formats <- "data.table"`: cannot add bindings to a locked environment
  Backtrace:
       ▆
    1. ├─mlr3::as_task_unsupervised(raster, id = "test") at test_predict_spatial.R:20:3
    2. └─mlr3spatial:::as_task_unsupervised.SpatRaster(raster, id = "test")
    3.   └─TaskUnsupervised$new(id = id, backend = x, label = label)
    4.     └─mlr3 (local) initialize(...)
    5.       └─mlr3:::.__TaskUnsupervised__initialize(...)
    6.         └─super$initialize(...)
    7.           └─mlr3:::.__Task__initialize(...)
    8.             ├─mlr3::as_data_backend(backend)
    9.             └─mlr3spatial::as_data_backend.SpatRaster(backend)
   10.               └─DataBackendRaster$new(data)
   11.                 └─mlr3spatial (local) initialize(...)
   12.                   └─mlr3spatial:::.__DataBackendRaster__initialize(...)
  ── Error ('test_predict_spatial.R:62:3'): sequential execution works ───────────
  Error in `self$data_formats <- "data.table"`: cannot add bindings to a locked environment
  Backtrace:
       ▆
    1. ├─mlr3::as_task_unsupervised(stack, id = "test") at test_predict_spatial.R:62:3
    2. └─mlr3spatial:::as_task_unsupervised.SpatRaster(stack, id = "test")
    3.   └─TaskUnsupervised$new(id = id, backend = x, label = label)
    4.     └─mlr3 (local) initialize(...)
    5.       └─mlr3:::.__TaskUnsupervised__initialize(...)
    6.         └─super$initialize(...)
    7.           └─mlr3:::.__Task__initialize(...)
    8.             ├─mlr3::as_data_backend(backend)
    9.             └─mlr3spatial::as_data_backend.SpatRaster(backend)
   10.               └─DataBackendRaster$new(data)
   11.                 └─mlr3spatial (local) initialize(...)
   12.                   └─mlr3spatial:::.__DataBackendRaster__initialize(...)
  ── Error ('test_predict_spatial.R:80:3'): sequential execution works in chunks ──
  Error in `self$data_formats <- "data.table"`: cannot add bindings to a locked environment
  Backtrace:
       ▆
    1. ├─mlr3::as_task_unsupervised(stack, id = "test") at test_predict_spatial.R:80:3
    2. └─mlr3spatial:::as_task_unsupervised.SpatRaster(stack, id = "test")
    3.   └─TaskUnsupervised$new(id = id, backend = x, label = label)
    4.     └─mlr3 (local) initialize(...)
    5.       └─mlr3:::.__TaskUnsupervised__initialize(...)
    6.         └─super$initialize(...)
    7.           └─mlr3:::.__Task__initialize(...)
    8.             ├─mlr3::as_data_backend(backend)
    9.             └─mlr3spatial::as_data_backend.SpatRaster(backend)
   10.               └─DataBackendRaster$new(data)
   11.                 └─mlr3spatial (local) initialize(...)
   12.                   └─mlr3spatial:::.__DataBackendRaster__initialize(...)
  ── Error ('test_predict_spatial.R:102:3'): parallel execution works with multicore ──
  Error in `self$data_formats <- "data.table"`: cannot add bindings to a locked environment
  Backtrace:
       ▆
    1. ├─mlr3::as_task_unsupervised(stack, id = "test") at test_predict_spatial.R:102:3
    2. └─mlr3spatial:::as_task_unsupervised.SpatRaster(stack, id = "test")
    3.   └─TaskUnsupervised$new(id = id, backend = x, label = label)
    4.     └─mlr3 (local) initialize(...)
    5.       └─mlr3:::.__TaskUnsupervised__initialize(...)
    6.         └─super$initialize(...)
    7.           └─mlr3:::.__Task__initialize(...)
    8.             ├─mlr3::as_data_backend(backend)
    9.             └─mlr3spatial::as_data_backend.SpatRaster(backend)
   10.               └─DataBackendRaster$new(data)
   11.                 └─mlr3spatial (local) initialize(...)
   12.                   └─mlr3spatial:::.__DataBackendRaster__initialize(...)
  ── Error ('test_predict_spatial.R:123:3'): parallel execution works with multisession ──
  Error in `self$data_formats <- "data.table"`: cannot add bindings to a locked environment
  Backtrace:
       ▆
    1. ├─mlr3::as_task_unsupervised(stack, id = "test") at test_predict_spatial.R:123:3
    2. └─mlr3spatial:::as_task_unsupervised.SpatRaster(stack, id = "test")
    3.   └─TaskUnsupervised$new(id = id, backend = x, label = label)
    4.     └─mlr3 (local) initialize(...)
    5.       └─mlr3:::.__TaskUnsupervised__initialize(...)
    6.         └─super$initialize(...)
    7.           └─mlr3:::.__Task__initialize(...)
    8.             ├─mlr3::as_data_backend(backend)
    9.             └─mlr3spatial::as_data_backend.SpatRaster(backend)
   10.               └─DataBackendRaster$new(data)
   11.                 └─mlr3spatial (local) initialize(...)
   12.                   └─mlr3spatial:::.__DataBackendRaster__initialize(...)
  ── Error ('test_predict_spatial.R:144:3'): parallel execution works with callr ──
  Error in `self$data_formats <- "data.table"`: cannot add bindings to a locked environment
  Backtrace:
       ▆
    1. ├─mlr3::as_task_unsupervised(stack, id = "test") at test_predict_spatial.R:144:3
    2. └─mlr3spatial:::as_task_unsupervised.SpatRaster(stack, id = "test")
    3.   └─TaskUnsupervised$new(id = id, backend = x, label = label)
    4.     └─mlr3 (local) initialize(...)
    5.       └─mlr3:::.__TaskUnsupervised__initialize(...)
    6.         └─super$initialize(...)
    7.           └─mlr3:::.__Task__initialize(...)
    8.             ├─mlr3::as_data_backend(backend)
    9.             └─mlr3spatial::as_data_backend.SpatRaster(backend)
   10.               └─DataBackendRaster$new(data)
   11.                 └─mlr3spatial (local) initialize(...)
   12.                   └─mlr3spatial:::.__DataBackendRaster__initialize(...)
  ── Error ('test_predict_spatial.R:170:3'): stars output works ──────────────────
  Error in `self$data_formats <- "data.table"`: cannot add bindings to a locked environment
  Backtrace:
       ▆
    1. ├─mlr3::as_task_unsupervised(stack, id = "test") at test_predict_spatial.R:170:3
    2. └─mlr3spatial:::as_task_unsupervised.SpatRaster(stack, id = "test")
    3.   └─TaskUnsupervised$new(id = id, backend = x, label = label)
    4.     └─mlr3 (local) initialize(...)
    5.       └─mlr3:::.__TaskUnsupervised__initialize(...)
    6.         └─super$initialize(...)
    7.           └─mlr3:::.__Task__initialize(...)
    8.             ├─mlr3::as_data_backend(backend)
    9.             └─mlr3spatial::as_data_backend.SpatRaster(backend)
   10.               └─DataBackendRaster$new(data)
   11.                 └─mlr3spatial (local) initialize(...)
   12.                   └─mlr3spatial:::.__DataBackendRaster__initialize(...)
  ── Error ('test_predict_spatial.R:191:3'): raster output works ─────────────────
  Error in `self$data_formats <- "data.table"`: cannot add bindings to a locked environment
  Backtrace:
       ▆
    1. ├─mlr3::as_task_unsupervised(stack, id = "test") at test_predict_spatial.R:191:3
    2. └─mlr3spatial:::as_task_unsupervised.SpatRaster(stack, id = "test")
    3.   └─TaskUnsupervised$new(id = id, backend = x, label = label)
    4.     └─mlr3 (local) initialize(...)
    5.       └─mlr3:::.__TaskUnsupervised__initialize(...)
    6.         └─super$initialize(...)
    7.           └─mlr3:::.__Task__initialize(...)
    8.             ├─mlr3::as_data_backend(backend)
    9.             └─mlr3spatial::as_data_backend.SpatRaster(backend)
   10.               └─DataBackendRaster$new(data)
   11.                 └─mlr3spatial (local) initialize(...)
   12.                   └─mlr3spatial:::.__DataBackendRaster__initialize(...)
  ── Error ('test_predict_spatial.R:215:3'): prediction on classification task works with missing values ──
  Error in `self$data_formats <- "data.table"`: cannot add bindings to a locked environment
  Backtrace:
       ▆
    1. ├─mlr3::as_task_unsupervised(stack, id = "test") at test_predict_spatial.R:215:3
    2. └─mlr3spatial:::as_task_unsupervised.SpatRaster(stack, id = "test")
    3.   └─TaskUnsupervised$new(id = id, backend = x, label = label)
    4.     └─mlr3 (local) initialize(...)
    5.       └─mlr3:::.__TaskUnsupervised__initialize(...)
    6.         └─super$initialize(...)
    7.           └─mlr3:::.__Task__initialize(...)
    8.             ├─mlr3::as_data_backend(backend)
    9.             └─mlr3spatial::as_data_backend.SpatRaster(backend)
   10.               └─DataBackendRaster$new(data)
   11.                 └─mlr3spatial (local) initialize(...)
   12.                   └─mlr3spatial:::.__DataBackendRaster__initialize(...)
  ── Error ('test_predict_spatial.R:239:3'): prediction on regression task works with missing values ──
  Error in `self$data_formats <- "data.table"`: cannot add bindings to a locked environment
  Backtrace:
       ▆
    1. ├─mlr3::as_task_unsupervised(stack, id = "test") at test_predict_spatial.R:239:3
    2. └─mlr3spatial:::as_task_unsupervised.SpatRaster(stack, id = "test")
    3.   └─TaskUnsupervised$new(id = id, backend = x, label = label)
    4.     └─mlr3 (local) initialize(...)
    5.       └─mlr3:::.__TaskUnsupervised__initialize(...)
    6.         └─super$initialize(...)
    7.           └─mlr3:::.__Task__initialize(...)
    8.             ├─mlr3::as_data_backend(backend)
    9.             └─mlr3spatial::as_data_backend.SpatRaster(backend)
   10.               └─DataBackendRaster$new(data)
   11.                 └─mlr3spatial (local) initialize(...)
   12.                   └─mlr3spatial:::.__DataBackendRaster__initialize(...)
  ── Error ('test_predict_spatial.R:254:3'): prediction are written to sf vector ──
  Error in `self$data_formats <- "data.table"`: cannot add bindings to a locked environment
  Backtrace:
       ▆
    1. ├─mlr3::as_task_unsupervised(vector) at test_predict_spatial.R:254:3
    2. └─mlr3spatial:::as_task_unsupervised.sf(vector)
    3.   └─TaskUnsupervised$new(id = id, backend = x, label = label)
    4.     └─mlr3 (local) initialize(...)
    5.       └─mlr3:::.__TaskUnsupervised__initialize(...)
    6.         └─super$initialize(...)
    7.           └─mlr3:::.__Task__initialize(...)
    8.             ├─mlr3::as_data_backend(backend)
    9.             └─mlr3spatial::as_data_backend.sf(backend)
   10.               └─DataBackendVector$new(data, primary_key)
   11.                 └─mlr3spatial (local) initialize(...)
   12.                   └─mlr3spatial:::.__DataBackendVector__initialize(...)
  
  [ FAIL 33 | WARN 1 | SKIP 0 | PASS 90 ]
  Error: Test failures
  Execution halted