Running 'testthat.R'
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > if (requireNamespace("testthat", quietly = TRUE)) {
  +   library(checkmate)
  +   library(testthat)
  +   library(mlr3spatiotempcv)
  + 
  +   test_check("mlr3spatiotempcv")
  + }
  Starting 2 test processes
  ══ Skipped tests ═══════════════════════════════════════════════════════════════
  • On CRAN (11)
  • vdiffr cannot be loaded (20)
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error (test-ResamplingRepeatedSpCVBlock.R:4:3): folds can be printed ────────
  Error: there is no package called 'sf'
  Backtrace:
       █
    1. ├─rsp$instantiate(task)
    2. │ └─mlr3spatiotempcv:::.__ResamplingRepeatedSpCVBlock__instantiate(...)
    3. │   └─private$.sample(task$row_ids, task$coordinates(), task$extra_args$crs)
    4. │     └─mlr3spatiotempcv:::.__ResamplingRepeatedSpCVBlock__.sample(...)
    5. │       └─mlr3misc::map(...)
    6. │         └─base::lapply(.x, .f, ...)
    7. │           └─mlr3spatiotempcv:::FUN(X[[i]], ...)
    8. │             └─mlr3spatiotempcv:::create_blocks(coords, self$param_set$values$range[i])
    9. └─base::loadNamespace(x)
   10.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   11.     └─base:::withOneRestart(expr, restarts[[1L]])
   12.       └─base:::doWithOneRestart(return(expr), restart)
  ── Error (test-ResamplingRepeatedSpCVBlock.R:12:3): reps can be printed ────────
  Error: there is no package called 'sf'
  Backtrace:
       █
    1. ├─rsp$instantiate(task)
    2. │ └─mlr3spatiotempcv:::.__ResamplingRepeatedSpCVBlock__instantiate(...)
    3. │   └─private$.sample(task$row_ids, task$coordinates(), task$extra_args$crs)
    4. │     └─mlr3spatiotempcv:::.__ResamplingRepeatedSpCVBlock__.sample(...)
    5. │       └─mlr3misc::map(...)
    6. │         └─base::lapply(.x, .f, ...)
    7. │           └─mlr3spatiotempcv:::FUN(X[[i]], ...)
    8. │             └─mlr3spatiotempcv:::create_blocks(coords, self$param_set$values$range[i])
    9. └─base::loadNamespace(x)
   10.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   11.     └─base:::withOneRestart(expr, restarts[[1L]])
   12.       └─base:::doWithOneRestart(return(expr), restart)
  ── Error (test-ResamplingRepeatedSpCVBlock.R:20:3): resampling iterations equals folds * repeats ──
  Error: there is no package called 'sf'
  Backtrace:
       █
    1. ├─rsp$instantiate(task)
    2. │ └─mlr3spatiotempcv:::.__ResamplingRepeatedSpCVBlock__instantiate(...)
    3. │   └─private$.sample(task$row_ids, task$coordinates(), task$extra_args$crs)
    4. │     └─mlr3spatiotempcv:::.__ResamplingRepeatedSpCVBlock__.sample(...)
    5. │       └─mlr3misc::map(...)
    6. │         └─base::lapply(.x, .f, ...)
    7. │           └─mlr3spatiotempcv:::FUN(X[[i]], ...)
    8. │             └─mlr3spatiotempcv:::create_blocks(coords, self$param_set$values$range[i])
    9. └─base::loadNamespace(x)
   10.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   11.     └─base:::withOneRestart(expr, restarts[[1L]])
   12.       └─base:::doWithOneRestart(return(expr), restart)
  ── Error (test-ResamplingRepeatedSpCVBlock.R:45:3): no error when length(range) == repeats ──
  Error: there is no package called 'sf'
  Backtrace:
       █
    1. ├─testthat::expect_silent(rsp$instantiate(task))
    2. │ └─testthat:::quasi_capture(enquo(object), NULL, evaluate_promise)
    3. │   ├─testthat:::.capture(...)
    4. │   │ ├─withr::with_output_sink(...)
    5. │   │ │ └─base::force(code)
    6. │   │ ├─base::withCallingHandlers(...)
    7. │   │ └─base::withVisible(code)
    8. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    9. ├─rsp$instantiate(task)
   10. │ └─mlr3spatiotempcv:::.__ResamplingRepeatedSpCVBlock__instantiate(...)
   11. │   └─private$.sample(task$row_ids, task$coordinates(), task$extra_args$crs)
   12. │     └─mlr3spatiotempcv:::.__ResamplingRepeatedSpCVBlock__.sample(...)
   13. │       └─mlr3misc::map(...)
   14. │         └─base::lapply(.x, .f, ...)
   15. │           └─mlr3spatiotempcv:::FUN(X[[i]], ...)
   16. │             └─mlr3spatiotempcv:::create_blocks(coords, self$param_set$values$range[i])
   17. └─base::loadNamespace(x)
   18.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   19.     └─base:::withOneRestart(expr, restarts[[1L]])
   20.       └─base:::doWithOneRestart(return(expr), restart)
  ── Error (test-ResamplingRepeatedSpCVBlock.R:55:3): mlr3spatiotempcv indices are the same as blockCV indices: cols and rows ──
  Error: there is no package called 'sf'
  Backtrace:
      █
   1. ├─mlr3spatiotempcv:::test_make_blockCV_test_task()
   2. │ └─mlr3spatiotempcv:::test_make_blockCV_test_df() C:\msys64\home\tomas\ucrt3\svn\ucrt3\r_packages\pkgcheck\CRAN\mlr3spatiotempcv\mlr3spatiotempcv.Rcheck\tests\testthat\helper.R:168:2
   3. └─base::loadNamespace(x) C:\msys64\home\tomas\ucrt3\svn\ucrt3\r_packages\pkgcheck\CRAN\mlr3spatiotempcv\mlr3spatiotempcv.Rcheck\tests\testthat\helper.R:158:2
   4.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   5.     └─base:::withOneRestart(expr, restarts[[1L]])
   6.       └─base:::doWithOneRestart(return(expr), restart)
  ── Error (test-ResamplingRepeatedSpCVBlock.R:86:3): Error when selection = checkboard and folds > 2 ──
  Error: there is no package called 'sf'
  Backtrace:
      █
   1. ├─mlr3spatiotempcv:::test_make_blockCV_test_task()
   2. │ └─mlr3spatiotempcv:::test_make_blockCV_test_df() C:\msys64\home\tomas\ucrt3\svn\ucrt3\r_packages\pkgcheck\CRAN\mlr3spatiotempcv\mlr3spatiotempcv.Rcheck\tests\testthat\helper.R:168:2
   3. └─base::loadNamespace(x) C:\msys64\home\tomas\ucrt3\svn\ucrt3\r_packages\pkgcheck\CRAN\mlr3spatiotempcv\mlr3spatiotempcv.Rcheck\tests\testthat\helper.R:158:2
   4.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   5.     └─base:::withOneRestart(expr, restarts[[1L]])
   6.       └─base:::doWithOneRestart(return(expr), restart)
  ── Error (test-ResamplingRepeatedSpCVBuffer.R:3:3): resampling with twoclass response is correctly instantiated ──
  Error: The following packages could not be loaded: blockCV,sf
  Backtrace:
       █
    1. └─mlr3::rsmp("spcv_buffer", theRange = 1)
    2.   └─mlr3misc::dictionary_sugar_get(mlr_resamplings, .key, ...)
    3.     ├─checkmate::assert_r6(dictionary_initialize_item(.key, obj, dots[ii]))
    4.     │ └─checkmate::checkR6(...)
    5.     └─mlr3misc:::dictionary_initialize_item(.key, obj, dots[ii])
    6.       ├─base::do.call(constructor$new, cargs)
    7.       └─(function (...) ...
    8.         └─mlr3spatiotempcv:::initialize(...)
    9.           └─mlr3spatiotempcv:::.__ResamplingSpCVBuffer__initialize(...)
   10.             └─mlr3misc::require_namespaces(c("blockCV", "sf"))
  ── Error (test-ResamplingRepeatedSpCVBuffer.R:12:3): resampling with multiclass response is correctly instantiated ──
  Error: The following packages could not be loaded: blockCV,sf
  Backtrace:
       █
    1. └─mlr3::rsmp("spcv_buffer", theRange = 1)
    2.   └─mlr3misc::dictionary_sugar_get(mlr_resamplings, .key, ...)
    3.     ├─checkmate::assert_r6(dictionary_initialize_item(.key, obj, dots[ii]))
    4.     │ └─checkmate::checkR6(...)
    5.     └─mlr3misc:::dictionary_initialize_item(.key, obj, dots[ii])
    6.       ├─base::do.call(constructor$new, cargs)
    7.       └─(function (...) ...
    8.         └─mlr3spatiotempcv:::initialize(...)
    9.           └─mlr3spatiotempcv:::.__ResamplingSpCVBuffer__initialize(...)
   10.             └─mlr3misc::require_namespaces(c("blockCV", "sf"))
  ── Error (test-ResamplingRepeatedSpCVBuffer.R:21:3): resampling with continuous response is correctly instantiated ──
  Error: The following packages could not be loaded: blockCV,sf
  Backtrace:
       █
    1. └─mlr3::rsmp("spcv_buffer", theRange = 1)
    2.   └─mlr3misc::dictionary_sugar_get(mlr_resamplings, .key, ...)
    3.     ├─checkmate::assert_r6(dictionary_initialize_item(.key, obj, dots[ii]))
    4.     │ └─checkmate::checkR6(...)
    5.     └─mlr3misc:::dictionary_initialize_item(.key, obj, dots[ii])
    6.       ├─base::do.call(constructor$new, cargs)
    7.       └─(function (...) ...
    8.         └─mlr3spatiotempcv:::initialize(...)
    9.           └─mlr3spatiotempcv:::.__ResamplingSpCVBuffer__initialize(...)
   10.             └─mlr3misc::require_namespaces(c("blockCV", "sf"))
  ── Error (test-ResamplingRepeatedSpCVBuffer.R:30:3): buffer is corretly applied ──
  Error: The following packages could not be loaded: blockCV,sf
  Backtrace:
       █
    1. └─mlr3::rsmp("spcv_buffer", theRange = 1)
    2.   └─mlr3misc::dictionary_sugar_get(mlr_resamplings, .key, ...)
    3.     ├─checkmate::assert_r6(dictionary_initialize_item(.key, obj, dots[ii]))
    4.     │ └─checkmate::checkR6(...)
    5.     └─mlr3misc:::dictionary_initialize_item(.key, obj, dots[ii])
    6.       ├─base::do.call(constructor$new, cargs)
    7.       └─(function (...) ...
    8.         └─mlr3spatiotempcv:::initialize(...)
    9.           └─mlr3spatiotempcv:::.__ResamplingSpCVBuffer__initialize(...)
   10.             └─mlr3misc::require_namespaces(c("blockCV", "sf"))
  ── Error (test-ResamplingRepeatedSpCVBuffer.R:39:3): spDataType = 'PA' and addBG = TRUE throws an error ──
  Error: The following packages could not be loaded: blockCV,sf
  Backtrace:
       █
    1. └─mlr3::rsmp("spcv_buffer", theRange = 1, spDataType = "PA", addBG = TRUE)
    2.   └─mlr3misc::dictionary_sugar_get(mlr_resamplings, .key, ...)
    3.     ├─checkmate::assert_r6(dictionary_initialize_item(.key, obj, dots[ii]))
    4.     │ └─checkmate::checkR6(...)
    5.     └─mlr3misc:::dictionary_initialize_item(.key, obj, dots[ii])
    6.       ├─base::do.call(constructor$new, cargs)
    7.       └─(function (...) ...
    8.         └─mlr3spatiotempcv:::initialize(...)
    9.           └─mlr3spatiotempcv:::.__ResamplingSpCVBuffer__initialize(...)
   10.             └─mlr3misc::require_namespaces(c("blockCV", "sf"))
  ── Error (test-ResamplingRepeatedSpCVBuffer.R:45:3): spDataType = 'PB' and regression task throws and error ──
  Error: The following packages could not be loaded: blockCV,sf
  Backtrace:
       █
    1. └─mlr3::rsmp("spcv_buffer", theRange = 1, spDataType = "PB")
    2.   └─mlr3misc::dictionary_sugar_get(mlr_resamplings, .key, ...)
    3.     ├─checkmate::assert_r6(dictionary_initialize_item(.key, obj, dots[ii]))
    4.     │ └─checkmate::checkR6(...)
    5.     └─mlr3misc:::dictionary_initialize_item(.key, obj, dots[ii])
    6.       ├─base::do.call(constructor$new, cargs)
    7.       └─(function (...) ...
    8.         └─mlr3spatiotempcv:::initialize(...)
    9.           └─mlr3spatiotempcv:::.__ResamplingSpCVBuffer__initialize(...)
   10.             └─mlr3misc::require_namespaces(c("blockCV", "sf"))
  ── Error (test-ResamplingRepeatedSpCVBuffer.R:51:3): spDataType = 'PB' and multi-class task throws and error ──
  Error: The following packages could not be loaded: blockCV,sf
  Backtrace:
       █
    1. └─mlr3::rsmp("spcv_buffer", theRange = 1, spDataType = "PB")
    2.   └─mlr3misc::dictionary_sugar_get(mlr_resamplings, .key, ...)
    3.     ├─checkmate::assert_r6(dictionary_initialize_item(.key, obj, dots[ii]))
    4.     │ └─checkmate::checkR6(...)
    5.     └─mlr3misc:::dictionary_initialize_item(.key, obj, dots[ii])
    6.       ├─base::do.call(constructor$new, cargs)
    7.       └─(function (...) ...
    8.         └─mlr3spatiotempcv:::initialize(...)
    9.           └─mlr3spatiotempcv:::.__ResamplingSpCVBuffer__initialize(...)
   10.             └─mlr3misc::require_namespaces(c("blockCV", "sf"))
  ── Error (test-1-autoplot.R:12:3): errors are thrown for non-valid argument settings ──
  Error: The following packages could not be loaded: sf,ggtext
  Backtrace:
      █
   1. ├─checkmate::expect_list(autoplot(rsp, task, c(1, 2), plot_as_grid = FALSE))
   2. │ └─checkmate::checkList(...)
   3. │   └─`%and%`(...)
   4. │     └─base::isTRUE(lhs)
   5. ├─ggplot2::autoplot(rsp, task, c(1, 2), plot_as_grid = FALSE)
   6. └─mlr3spatiotempcv:::autoplot.ResamplingSpCVCoords(...)
   7.   └─mlr3spatiotempcv:::autoplot_spatial(...)
   8.     └─mlr3misc::require_namespaces(c("sf", "patchwork", "ggtext"))
  ── Error (test-1-autoplot.R:444:3): autoplot time + space ──────────────────────
  Error: The following packages could not be loaded: sf,ggtext
  Backtrace:
      █
   1. ├─ggplot2::autoplot(...)
   2. └─mlr3spatiotempcv:::autoplot.ResamplingSptCVCstf(...)
   3.   └─mlr3misc::require_namespaces(c("sf", "patchwork", "ggtext"))
  ── Error (test-ResamplingSpCVBlock.R:3:3): resampling iterations equals folds ──
  Error: The following packages could not be loaded: blockCV,sf
  Backtrace:
       █
    1. └─mlr3::rsmp("spcv_block", folds = 2, range = 2L)
    2.   └─mlr3misc::dictionary_sugar_get(mlr_resamplings, .key, ...)
    3.     ├─checkmate::assert_r6(dictionary_initialize_item(.key, obj, dots[ii]))
    4.     │ └─checkmate::checkR6(...)
    5.     └─mlr3misc:::dictionary_initialize_item(.key, obj, dots[ii])
    6.       ├─base::do.call(constructor$new, cargs)
    7.       └─(function (...) ...
    8.         └─mlr3spatiotempcv:::initialize(...)
    9.           └─mlr3spatiotempcv:::.__ResamplingSpCVBlock__initialize(...)
   10.             └─mlr3misc::require_namespaces(c("blockCV", "sf"))
  ── Error (test-ResamplingSpCVBlock.R:11:3): error when number of desired folds is larger than number possible blocks ──
  Error: The following packages could not be loaded: blockCV,sf
  Backtrace:
       █
    1. └─mlr3::rsmp("spcv_block", folds = 10, range = 4L)
    2.   └─mlr3misc::dictionary_sugar_get(mlr_resamplings, .key, ...)
    3.     ├─checkmate::assert_r6(dictionary_initialize_item(.key, obj, dots[ii]))
    4.     │ └─checkmate::checkR6(...)
    5.     └─mlr3misc:::dictionary_initialize_item(.key, obj, dots[ii])
    6.       ├─base::do.call(constructor$new, cargs)
    7.       └─(function (...) ...
    8.         └─mlr3spatiotempcv:::initialize(...)
    9.           └─mlr3spatiotempcv:::.__ResamplingSpCVBlock__initialize(...)
   10.             └─mlr3misc::require_namespaces(c("blockCV", "sf"))
  ── Error (test-ResamplingSpCVBlock.R:18:3): error when neither cols & rows | range is specified ──
  Error: The following packages could not be loaded: blockCV,sf
  Backtrace:
      █
   1. └─mlr3::rsmp("spcv_block")
   2.   └─mlr3misc::dictionary_sugar_get(mlr_resamplings, .key, ...)
   3.     └─mlr3misc:::dictionary_get(dict, .key)
   4.       └─mlr3misc:::dictionary_initialize_item(key, obj, dots)
   5.         ├─base::do.call(constructor$new, cargs)
   6.         └─(function (...) ...
   7.           └─mlr3spatiotempcv:::initialize(...)
   8.             └─mlr3spatiotempcv:::.__ResamplingSpCVBlock__initialize(...)
   9.               └─mlr3misc::require_namespaces(c("blockCV", "sf"))
  ── Error (test-ResamplingSpCVBlock.R:27:3): error when only one of rows or cols is set ──
  Error: The following packages could not be loaded: blockCV,sf
  Backtrace:
       █
    1. └─mlr3::rsmp("spcv_block", rows = 4)
    2.   └─mlr3misc::dictionary_sugar_get(mlr_resamplings, .key, ...)
    3.     ├─checkmate::assert_r6(dictionary_initialize_item(.key, obj, dots[ii]))
    4.     │ └─checkmate::checkR6(...)
    5.     └─mlr3misc:::dictionary_initialize_item(.key, obj, dots[ii])
    6.       ├─base::do.call(constructor$new, cargs)
    7.       └─(function (...) ...
    8.         └─mlr3spatiotempcv:::initialize(...)
    9.           └─mlr3spatiotempcv:::.__ResamplingSpCVBlock__initialize(...)
   10.             └─mlr3misc::require_namespaces(c("blockCV", "sf"))
  ── Error (test-ResamplingSpCVBlock.R:44:3): mlr3spatiotempcv indices are the same as blockCV indices: selection = checkerboard ──
  Error: there is no package called 'sf'
  Backtrace:
      █
   1. ├─mlr3spatiotempcv:::test_make_blockCV_test_task()
   2. │ └─mlr3spatiotempcv:::test_make_blockCV_test_df() C:\msys64\home\tomas\ucrt3\svn\ucrt3\r_packages\pkgcheck\CRAN\mlr3spatiotempcv\mlr3spatiotempcv.Rcheck\tests\testthat\helper.R:168:2
   3. └─base::loadNamespace(x) C:\msys64\home\tomas\ucrt3\svn\ucrt3\r_packages\pkgcheck\CRAN\mlr3spatiotempcv\mlr3spatiotempcv.Rcheck\tests\testthat\helper.R:158:2
   4.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   5.     └─base:::withOneRestart(expr, restarts[[1L]])
   6.       └─base:::doWithOneRestart(return(expr), restart)
  ── Error (test-ResamplingSpCVBlock.R:65:3): mlr3spatiotempcv indices are the same as blockCV indices: cols and rows ──
  Error: there is no package called 'sf'
  Backtrace:
      █
   1. ├─mlr3spatiotempcv:::test_make_blockCV_test_task()
   2. │ └─mlr3spatiotempcv:::test_make_blockCV_test_df() C:\msys64\home\tomas\ucrt3\svn\ucrt3\r_packages\pkgcheck\CRAN\mlr3spatiotempcv\mlr3spatiotempcv.Rcheck\tests\testthat\helper.R:168:2
   3. └─base::loadNamespace(x) C:\msys64\home\tomas\ucrt3\svn\ucrt3\r_packages\pkgcheck\CRAN\mlr3spatiotempcv\mlr3spatiotempcv.Rcheck\tests\testthat\helper.R:158:2
   4.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   5.     └─base:::withOneRestart(expr, restarts[[1L]])
   6.       └─base:::doWithOneRestart(return(expr), restart)
  ── Error (test-ResamplingSpCVBlock.R:102:3): mlr3spatiotempcv indices are the same as blockCV indices: rasterLayer ──
  Error: there is no package called 'sf'
  Backtrace:
      █
   1. ├─mlr3spatiotempcv:::test_make_blockCV_test_task()
   2. │ └─mlr3spatiotempcv:::test_make_blockCV_test_df() C:\msys64\home\tomas\ucrt3\svn\ucrt3\r_packages\pkgcheck\CRAN\mlr3spatiotempcv\mlr3spatiotempcv.Rcheck\tests\testthat\helper.R:168:2
   3. └─base::loadNamespace(x) C:\msys64\home\tomas\ucrt3\svn\ucrt3\r_packages\pkgcheck\CRAN\mlr3spatiotempcv\mlr3spatiotempcv.Rcheck\tests\testthat\helper.R:158:2
   4.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   5.     └─base:::withOneRestart(expr, restarts[[1L]])
   6.       └─base:::doWithOneRestart(return(expr), restart)
  ── Error (test-ResamplingSpCVBlock.R:132:3): Error when selection = checkboard and folds > 2 ──
  Error: there is no package called 'sf'
  Backtrace:
      █
   1. ├─mlr3spatiotempcv:::test_make_blockCV_test_task()
   2. │ └─mlr3spatiotempcv:::test_make_blockCV_test_df() C:\msys64\home\tomas\ucrt3\svn\ucrt3\r_packages\pkgcheck\CRAN\mlr3spatiotempcv\mlr3spatiotempcv.Rcheck\tests\testthat\helper.R:168:2
   3. └─base::loadNamespace(x) C:\msys64\home\tomas\ucrt3\svn\ucrt3\r_packages\pkgcheck\CRAN\mlr3spatiotempcv\mlr3spatiotempcv.Rcheck\tests\testthat\helper.R:158:2
   4.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   5.     └─base:::withOneRestart(expr, restarts[[1L]])
   6.       └─base:::doWithOneRestart(return(expr), restart)
  ── Error (test-ResamplingSpCVBuffer.R:3:3): resampling iterations equals number of observations (two-class response) ──
  Error: The following packages could not be loaded: blockCV,sf
  Backtrace:
       █
    1. └─mlr3::rsmp("spcv_buffer", theRange = 1)
    2.   └─mlr3misc::dictionary_sugar_get(mlr_resamplings, .key, ...)
    3.     ├─checkmate::assert_r6(dictionary_initialize_item(.key, obj, dots[ii]))
    4.     │ └─checkmate::checkR6(...)
    5.     └─mlr3misc:::dictionary_initialize_item(.key, obj, dots[ii])
    6.       ├─base::do.call(constructor$new, cargs)
    7.       └─(function (...) ...
    8.         └─mlr3spatiotempcv:::initialize(...)
    9.           └─mlr3spatiotempcv:::.__ResamplingSpCVBuffer__initialize(...)
   10.             └─mlr3misc::require_namespaces(c("blockCV", "sf"))
  ── Error (test-ResamplingSpCVBuffer.R:11:3): resampling iterations equals number of observations (multi-class response) ──
  Error: The following packages could not be loaded: blockCV,sf
  Backtrace:
       █
    1. └─mlr3::rsmp("spcv_buffer", theRange = 1)
    2.   └─mlr3misc::dictionary_sugar_get(mlr_resamplings, .key, ...)
    3.     ├─checkmate::assert_r6(dictionary_initialize_item(.key, obj, dots[ii]))
    4.     │ └─checkmate::checkR6(...)
    5.     └─mlr3misc:::dictionary_initialize_item(.key, obj, dots[ii])
    6.       ├─base::do.call(constructor$new, cargs)
    7.       └─(function (...) ...
    8.         └─mlr3spatiotempcv:::initialize(...)
    9.           └─mlr3spatiotempcv:::.__ResamplingSpCVBuffer__initialize(...)
   10.             └─mlr3misc::require_namespaces(c("blockCV", "sf"))
  ── Error (test-ResamplingSpCVBuffer.R:19:3): resampling iterations equals number of observations (continuous response) ──
  Error: The following packages could not be loaded: blockCV,sf
  Backtrace:
       █
    1. └─mlr3::rsmp("spcv_buffer", theRange = 1)
    2.   └─mlr3misc::dictionary_sugar_get(mlr_resamplings, .key, ...)
    3.     ├─checkmate::assert_r6(dictionary_initialize_item(.key, obj, dots[ii]))
    4.     │ └─checkmate::checkR6(...)
    5.     └─mlr3misc:::dictionary_initialize_item(.key, obj, dots[ii])
    6.       ├─base::do.call(constructor$new, cargs)
    7.       └─(function (...) ...
    8.         └─mlr3spatiotempcv:::initialize(...)
    9.           └─mlr3spatiotempcv:::.__ResamplingSpCVBuffer__initialize(...)
   10.             └─mlr3misc::require_namespaces(c("blockCV", "sf"))
  ── Error (test-ResamplingSpCVBuffer.R:27:3): buffered observations are excludes in train set ──
  Error: The following packages could not be loaded: blockCV,sf
  Backtrace:
       █
    1. └─mlr3::rsmp("spcv_buffer", theRange = 1, spDataType = "PA")
    2.   └─mlr3misc::dictionary_sugar_get(mlr_resamplings, .key, ...)
    3.     ├─checkmate::assert_r6(dictionary_initialize_item(.key, obj, dots[ii]))
    4.     │ └─checkmate::checkR6(...)
    5.     └─mlr3misc:::dictionary_initialize_item(.key, obj, dots[ii])
    6.       ├─base::do.call(constructor$new, cargs)
    7.       └─(function (...) ...
    8.         └─mlr3spatiotempcv:::initialize(...)
    9.           └─mlr3spatiotempcv:::.__ResamplingSpCVBuffer__initialize(...)
   10.             └─mlr3misc::require_namespaces(c("blockCV", "sf"))
  ── Error (test-ResamplingSpCVBuffer.R:36:3): test sets only include positive observations ──
  Error: The following packages could not be loaded: blockCV,sf
  Backtrace:
       █
    1. └─mlr3::rsmp("spcv_buffer", theRange = 1, spDataType = "PB", addBG = FALSE)
    2.   └─mlr3misc::dictionary_sugar_get(mlr_resamplings, .key, ...)
    3.     ├─checkmate::assert_r6(dictionary_initialize_item(.key, obj, dots[ii]))
    4.     │ └─checkmate::checkR6(...)
    5.     └─mlr3misc:::dictionary_initialize_item(.key, obj, dots[ii])
    6.       ├─base::do.call(constructor$new, cargs)
    7.       └─(function (...) ...
    8.         └─mlr3spatiotempcv:::initialize(...)
    9.           └─mlr3spatiotempcv:::.__ResamplingSpCVBuffer__initialize(...)
   10.             └─mlr3misc::require_namespaces(c("blockCV", "sf"))
  ── Error (test-ResamplingSpCVBuffer.R:45:3): test sets include background observations ──
  Error: The following packages could not be loaded: blockCV,sf
  Backtrace:
       █
    1. └─mlr3::rsmp("spcv_buffer", theRange = 1, spDataType = "PB", addBG = TRUE)
    2.   └─mlr3misc::dictionary_sugar_get(mlr_resamplings, .key, ...)
    3.     ├─checkmate::assert_r6(dictionary_initialize_item(.key, obj, dots[ii]))
    4.     │ └─checkmate::checkR6(...)
    5.     └─mlr3misc:::dictionary_initialize_item(.key, obj, dots[ii])
    6.       ├─base::do.call(constructor$new, cargs)
    7.       └─(function (...) ...
    8.         └─mlr3spatiotempcv:::initialize(...)
    9.           └─mlr3spatiotempcv:::.__ResamplingSpCVBuffer__initialize(...)
   10.             └─mlr3misc::require_namespaces(c("blockCV", "sf"))
  ── Error (test-ResamplingSpCVBuffer.R:58:3): spDataType = 'PA' and addBG = TRUE throws an error ──
  Error: The following packages could not be loaded: blockCV,sf
  Backtrace:
       █
    1. └─mlr3::rsmp("spcv_buffer", theRange = 1, spDataType = "PA", addBG = TRUE)
    2.   └─mlr3misc::dictionary_sugar_get(mlr_resamplings, .key, ...)
    3.     ├─checkmate::assert_r6(dictionary_initialize_item(.key, obj, dots[ii]))
    4.     │ └─checkmate::checkR6(...)
    5.     └─mlr3misc:::dictionary_initialize_item(.key, obj, dots[ii])
    6.       ├─base::do.call(constructor$new, cargs)
    7.       └─(function (...) ...
    8.         └─mlr3spatiotempcv:::initialize(...)
    9.           └─mlr3spatiotempcv:::.__ResamplingSpCVBuffer__initialize(...)
   10.             └─mlr3misc::require_namespaces(c("blockCV", "sf"))
  ── Error (test-ResamplingSpCVBuffer.R:65:3): spDataType = 'PB' and continuous response throws an error ──
  Error: The following packages could not be loaded: blockCV,sf
  Backtrace:
       █
    1. └─mlr3::rsmp("spcv_buffer", theRange = 1, spDataType = "PB")
    2.   └─mlr3misc::dictionary_sugar_get(mlr_resamplings, .key, ...)
    3.     ├─checkmate::assert_r6(dictionary_initialize_item(.key, obj, dots[ii]))
    4.     │ └─checkmate::checkR6(...)
    5.     └─mlr3misc:::dictionary_initialize_item(.key, obj, dots[ii])
    6.       ├─base::do.call(constructor$new, cargs)
    7.       └─(function (...) ...
    8.         └─mlr3spatiotempcv:::initialize(...)
    9.           └─mlr3spatiotempcv:::.__ResamplingSpCVBuffer__initialize(...)
   10.             └─mlr3misc::require_namespaces(c("blockCV", "sf"))
  ── Error (test-ResamplingSpCVBuffer.R:72:3): spDataType = 'PB' and multi-class response throws an error ──
  Error: The following packages could not be loaded: blockCV,sf
  Backtrace:
       █
    1. └─mlr3::rsmp("spcv_buffer", theRange = 1, spDataType = "PB")
    2.   └─mlr3misc::dictionary_sugar_get(mlr_resamplings, .key, ...)
    3.     ├─checkmate::assert_r6(dictionary_initialize_item(.key, obj, dots[ii]))
    4.     │ └─checkmate::checkR6(...)
    5.     └─mlr3misc:::dictionary_initialize_item(.key, obj, dots[ii])
    6.       ├─base::do.call(constructor$new, cargs)
    7.       └─(function (...) ...
    8.         └─mlr3spatiotempcv:::initialize(...)
    9.           └─mlr3spatiotempcv:::.__ResamplingSpCVBuffer__initialize(...)
   10.             └─mlr3misc::require_namespaces(c("blockCV", "sf"))
  ── Error (test-ResamplingSpCVBuffer.R:79:3): grouping throws errors when 'groups' is set ──
  Error: The following packages could not be loaded: blockCV,sf
  Backtrace:
       █
    1. └─mlr3::rsmp("spcv_buffer", theRange = 1)
    2.   └─mlr3misc::dictionary_sugar_get(mlr_resamplings, .key, ...)
    3.     ├─checkmate::assert_r6(dictionary_initialize_item(.key, obj, dots[ii]))
    4.     │ └─checkmate::checkR6(...)
    5.     └─mlr3misc:::dictionary_initialize_item(.key, obj, dots[ii])
    6.       ├─base::do.call(constructor$new, cargs)
    7.       └─(function (...) ...
    8.         └─mlr3spatiotempcv:::initialize(...)
    9.           └─mlr3spatiotempcv:::.__ResamplingSpCVBuffer__initialize(...)
   10.             └─mlr3misc::require_namespaces(c("blockCV", "sf"))
  ── Error (test-TaskClassifST.R:28:3): sf objects can be used for task creation ──
  Error: there is no package called 'sf'
  Backtrace:
      █
   1. ├─mlr3spatiotempcv:::test_make_sf_twoclass_task()
   2. └─base::loadNamespace(x) C:\msys64\home\tomas\ucrt3\svn\ucrt3\r_packages\pkgcheck\CRAN\mlr3spatiotempcv\mlr3spatiotempcv.Rcheck\tests\testthat\helper.R:106:2
   3.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   4.     └─base:::withOneRestart(expr, restarts[[1L]])
   5.       └─base:::doWithOneRestart(return(expr), restart)
  ── Error (test-TaskClassifST.R:36:3): sf objects can be used for task creation ──
  Error: there is no package called 'sf'
  Backtrace:
      █
   1. ├─mlr3spatiotempcv:::test_make_sf_regr_task()
   2. └─base::loadNamespace(x) C:\msys64\home\tomas\ucrt3\svn\ucrt3\r_packages\pkgcheck\CRAN\mlr3spatiotempcv\mlr3spatiotempcv.Rcheck\tests\testthat\helper.R:39:2
   3.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   4.     └─base:::withOneRestart(expr, restarts[[1L]])
   5.       └─base:::doWithOneRestart(return(expr), restart)
  ── Error (test-TaskClassifST.R:45:3): tasks created from sf objects do not duplicate rows ──
  Error: there is no package called 'sf'
  Backtrace:
      █
   1. ├─mlr3spatiotempcv:::test_make_sf_twoclass_df()
   2. └─base::loadNamespace(x) C:\msys64\home\tomas\ucrt3\svn\ucrt3\r_packages\pkgcheck\CRAN\mlr3spatiotempcv\mlr3spatiotempcv.Rcheck\tests\testthat\helper.R:140:2
   3.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   4.     └─base:::withOneRestart(expr, restarts[[1L]])
   5.       └─base:::doWithOneRestart(return(expr), restart)
  ── Error (test-as_task.R:22:3): as_task_classif_st.sf works ────────────────────
  Error: there is no package called 'sf'
  Backtrace:
      █
   1. └─base::loadNamespace(x)
   2.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   3.     └─base:::withOneRestart(expr, restarts[[1L]])
   4.       └─base:::doWithOneRestart(return(expr), restart)
  ── Error (test-as_task.R:52:3): as_task_regr_st.sf works ───────────────────────
  Error: there is no package called 'sf'
  Backtrace:
      █
   1. └─base::loadNamespace(x)
   2.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   3.     └─base:::withOneRestart(expr, restarts[[1L]])
   4.       └─base:::doWithOneRestart(return(expr), restart)
  ── Error (test-mlr3pipelines-graph-integration.R:6:3): spcv methods work in a Graph Learner ──
  Error: The following packages could not be loaded: blockCV,sf
  Backtrace:
       █
    1. ├─base::append(rsmps, rsmp("spcv_block", folds = 2, rows = 2, cols = 2))
    2. └─mlr3::rsmp("spcv_block", folds = 2, rows = 2, cols = 2)
    3.   └─mlr3misc::dictionary_sugar_get(mlr_resamplings, .key, ...)
    4.     ├─checkmate::assert_r6(dictionary_initialize_item(.key, obj, dots[ii]))
    5.     │ └─checkmate::checkR6(...)
    6.     └─mlr3misc:::dictionary_initialize_item(.key, obj, dots[ii])
    7.       ├─base::do.call(constructor$new, cargs)
    8.       └─(function (...) ...
    9.         └─mlr3spatiotempcv:::initialize(...)
   10.           └─mlr3spatiotempcv:::.__ResamplingSpCVBlock__initialize(...)
   11.             └─mlr3misc::require_namespaces(c("blockCV", "sf"))
  ── Error (test-mlr_sptcv_generic.R:4:3): no duplicated ids ─────────────────────
  Error: The following packages could not be loaded: blockCV,sf
  Backtrace:
       █
    1. ├─mlr_resamplings$mget(...)
    2. │ └─checkmate::assert_character(keys, min.chars = 1L, any.missing = FALSE)
    3. │   └─checkmate::checkCharacter(...)
    4. │     └─`%and%`(...)
    5. │       └─base::isTRUE(lhs)
    6. ├─data.table::as.data.table(mlr_resamplings)
    7. └─mlr3:::as.data.table.DictionaryResampling(mlr_resamplings)
    8.   ├─data.table::setkeyv(...)
    9.   │ └─data.table::is.data.table(x)
   10.   └─mlr3misc::map_dtr(...)
   11.     ├─data.table::rbindlist(...)
   12.     ├─base::unname(map(.x, .f, ...))
   13.     └─mlr3misc::map(.x, .f, ...)
   14.       └─base::lapply(.x, .f, ...)
   15.         └─mlr3:::FUN(X[[i]], ...)
   16.           ├─base::tryCatch(x$get(key), missingDefaultError = function(e) NULL)
   17.           │ └─base:::tryCatchList(expr, classes, parentenv, handlers)
   18.           │   └─base:::tryCatchOne(expr, names, parentenv, handlers[[1L]])
   19.           │     └─base:::doTryCatch(return(expr), name, parentenv, handler)
   20.           └─x$get(key)
   21.             └─mlr3misc:::dictionary_get(self, key, ...)
   22.               └─mlr3misc:::dictionary_initialize_item(key, obj, dots)
   23.                 ├─base::do.call(constructor$new, cargs)
   24.                 └─(function (...) ...
   25.                   └─mlr3spatiotempcv:::initialize(...)
   26.                     └─mlr3spatiotempcv:::.__ResamplingSpCVBlock__initialize(...)
   27.                       └─mlr3misc::require_namespaces(c("blockCV", "sf"))
  ── Error (test-mlr_sptcv_generic.R:23:3): grouping throws errors when 'groups' is set ──
  Error: The following packages could not be loaded: blockCV,sf
  Backtrace:
       █
    1. ├─base::append(...)
    2. └─mlr3::rsmp("spcv_block", folds = 2, rows = 2, cols = 2)
    3.   └─mlr3misc::dictionary_sugar_get(mlr_resamplings, .key, ...)
    4.     ├─checkmate::assert_r6(dictionary_initialize_item(.key, obj, dots[ii]))
    5.     │ └─checkmate::checkR6(...)
    6.     └─mlr3misc:::dictionary_initialize_item(.key, obj, dots[ii])
    7.       ├─base::do.call(constructor$new, cargs)
    8.       └─(function (...) ...
    9.         └─mlr3spatiotempcv:::initialize(...)
   10.           └─mlr3spatiotempcv:::.__ResamplingSpCVBlock__initialize(...)
   11.             └─mlr3misc::require_namespaces(c("blockCV", "sf"))
  ── Error (test-mlr_sptcv_generic.R:37:3): train and test set getter functions are working ──
  Error: The following packages could not be loaded: blockCV,sf
  Backtrace:
       █
    1. ├─base::append(...)
    2. └─mlr3::rsmp("spcv_block", folds = 2, rows = 2, cols = 2)
    3.   └─mlr3misc::dictionary_sugar_get(mlr_resamplings, .key, ...)
    4.     ├─checkmate::assert_r6(dictionary_initialize_item(.key, obj, dots[ii]))
    5.     │ └─checkmate::checkR6(...)
    6.     └─mlr3misc:::dictionary_initialize_item(.key, obj, dots[ii])
    7.       ├─base::do.call(constructor$new, cargs)
    8.       └─(function (...) ...
    9.         └─mlr3spatiotempcv:::initialize(...)
   10.           └─mlr3spatiotempcv:::.__ResamplingSpCVBlock__initialize(...)
   11.             └─mlr3misc::require_namespaces(c("blockCV", "sf"))
  ── Error (test-mlr_sptcv_generic.R:55:5): train and test set getter functions are working ──
  Error: there is no package called 'sf'
  Backtrace:
       █
    1. ├─i$instantiate(task)
    2. │ └─mlr3spatiotempcv:::.__ResamplingRepeatedSpCVBlock__instantiate(...)
    3. │   └─private$.sample(task$row_ids, task$coordinates(), task$extra_args$crs)
    4. │     └─mlr3spatiotempcv:::.__ResamplingRepeatedSpCVBlock__.sample(...)
    5. │       └─mlr3misc::map(...)
    6. │         └─base::lapply(.x, .f, ...)
    7. │           └─mlr3spatiotempcv:::FUN(X[[i]], ...)
    8. │             └─mlr3spatiotempcv:::create_blocks(coords, self$param_set$values$range[i])
    9. └─base::loadNamespace(x)
   10.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   11.     └─base:::withOneRestart(expr, restarts[[1L]])
   12.       └─base:::doWithOneRestart(return(expr), restart)
  ── Error (test-mlr_sptcv_generic.R:78:3): cloning works ────────────────────────
  Error: The following packages could not be loaded: blockCV,sf
  Backtrace:
       █
    1. ├─base::append(...)
    2. └─mlr3::rsmp("spcv_block", folds = 2, rows = 2, cols = 2)
    3.   └─mlr3misc::dictionary_sugar_get(mlr_resamplings, .key, ...)
    4.     ├─checkmate::assert_r6(dictionary_initialize_item(.key, obj, dots[ii]))
    5.     │ └─checkmate::checkR6(...)
    6.     └─mlr3misc:::dictionary_initialize_item(.key, obj, dots[ii])
    7.       ├─base::do.call(constructor$new, cargs)
    8.       └─(function (...) ...
    9.         └─mlr3spatiotempcv:::initialize(...)
   10.           └─mlr3spatiotempcv:::.__ResamplingSpCVBlock__initialize(...)
   11.             └─mlr3misc::require_namespaces(c("blockCV", "sf"))
  
  [ FAIL 44 | WARN 0 | SKIP 31 | PASS 103 ]
  Error: Test failures
  Execution halted