Running ‘testthat.R’ [29s/18s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > if (requireNamespace("testthat", quietly = TRUE)) {
  +   library("checkmate")
  +   library("testthat")
  +   library("mlr3spatiotempcv")
  +   test_check("mlr3spatiotempcv")
  + }
  Loading required package: mlr3
  Starting 2 test processes
  [ FAIL 11 | WARN 1 | SKIP 74 | PASS 1029 ]
  
  ══ Skipped tests (74) ══════════════════════════════════════════════════════════
  • CAST cannot be loaded (3): 'test-ResamplingRepeatedSpCVKnndm.R:1:1',
    'test-ResamplingSpCVKnndm.R:2:3', 'test-ResamplingSpCVKnndm.R:23:3'
  • On Linux (2): 'test-2-autoplot.R:8:3', 'test-2-autoplot.R:54:3'
  • blockCV cannot be loaded (54): 'test-1-autoplot.R:205:3',
    'test-1-autoplot.R:236:3', 'test-1-autoplot.R:266:3',
    'test-1-autoplot.R:293:3', 'test-1-autoplot.R:324:3',
    'test-1-autoplot.R:355:3', 'test-ResamplingRepeatedSpCVBlock.R:2:3',
    'test-ResamplingRepeatedSpCVBlock.R:12:3',
    'test-ResamplingRepeatedSpCVBlock.R:22:3',
    'test-ResamplingRepeatedSpCVBlock.R:32:3',
    'test-ResamplingRepeatedSpCVBlock.R:42:3',
    'test-ResamplingRepeatedSpCVBlock.R:53:3',
    'test-ResamplingRepeatedSpCVBlock.R:62:3',
    'test-ResamplingRepeatedSpCVBlock.R:70:3',
    'test-ResamplingRepeatedSpCVBlock.R:114:3',
    'test-ResamplingRepeatedSpCVBuffer.R:2:3',
    'test-ResamplingRepeatedSpCVBuffer.R:13:3',
    'test-ResamplingRepeatedSpCVBuffer.R:24:3',
    'test-ResamplingRepeatedSpCVBuffer.R:35:3',
    'test-ResamplingRepeatedSpCVBuffer.R:46:3',
    'test-ResamplingRepeatedSpCVBuffer.R:54:3',
    'test-ResamplingRepeatedSpCVBuffer.R:62:3',
    'test-ResamplingRepeatedSpCVEnv.R:2:3',
    'test-ResamplingRepeatedSpCVEnv.R:13:3',
    'test-ResamplingRepeatedSpCVEnv.R:24:3',
    'test-ResamplingRepeatedSpCVEnv.R:34:3',
    'test-ResamplingRepeatedSpCVEnv.R:48:3',
    'test-ResamplingRepeatedSpCVEnv.R:56:3', 'test-ResamplingSpCVBlock.R:2:3',
    'test-ResamplingSpCVBlock.R:12:3', 'test-ResamplingSpCVBlock.R:21:3',
    'test-ResamplingSpCVBlock.R:32:3', 'test-ResamplingSpCVBlock.R:44:3',
    'test-ResamplingSpCVBlock.R:51:3', 'test-ResamplingSpCVBuffer.R:2:3',
    'test-ResamplingSpCVBuffer.R:12:3', 'test-ResamplingSpCVBuffer.R:22:3',
    'test-ResamplingSpCVBuffer.R:32:3', 'test-ResamplingSpCVBuffer.R:43:3',
    'test-ResamplingSpCVBuffer.R:54:3', 'test-ResamplingSpCVBuffer.R:69:3',
    'test-ResamplingSpCVBuffer.R:78:3', 'test-ResamplingSpCVBuffer.R:87:3',
    'test-ResamplingSpCVBuffer.R:96:3', 'test-ResamplingSpCVEnv.R:2:3',
    'test-ResamplingSpCVEnv.R:12:3', 'test-ResamplingSpCVEnv.R:26:3',
    'test-ResamplingSpCVEnv.R:35:3', 'test-autoplot_buffer.R:4:3',
    'test-mlr3pipelines-graph-integration.R:3:3', 'test-mlr_sptcv_generic.R:4:3',
    'test-mlr_sptcv_generic.R:22:3', 'test-mlr_sptcv_generic.R:38:3',
    'test-mlr_sptcv_generic.R:54:3'
  • mlr3spatial cannot be loaded (1): 'test-helper-DataBackend.R:3:3'
  • sf cannot be loaded (13): 'test-1-autoplot.R:4:3', 'test-2-autoplot.R:190:3',
    'test-ResamplingSpCVBlock.R:84:3', 'test-ResamplingSpCVBlock.R:114:3',
    'test-ResamplingSpCVBlock.R:176:3', 'test-TaskClassifST.R:29:3',
    'test-TaskClassifST.R:38:3', 'test-TaskClassifST.R:48:3',
    'test-TaskClassifST.R:79:3', 'test-TaskClassifST.R:89:3',
    'test-TaskRegrST.R:52:3', 'test-as_task.R:21:3', 'test-as_task.R:52:3'
  • skmeans cannot be loaded (1): 'test-mlr_sptcv_generic.R:70:3'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-1-autoplot.R:27:3'): plot() works for 'cv' ─────────────────────
  <packageNotFoundError/error/condition>
  Error: The following packages could not be loaded: sf,ggtext
  Backtrace:
      ▆
   1. ├─ggplot2::autoplot(plots$rsp, plots$task) at test-1-autoplot.R:27:3
   2. └─mlr3spatiotempcv:::autoplot.ResamplingCV(plots$rsp, plots$task)
   3.   └─mlr3spatiotempcv:::autoplot_spatial(...)
   4.     └─mlr3misc::require_namespaces(c("sf", "patchwork", "ggtext"))
  ── Error ('test-1-autoplot.R:58:3'): plot() works for 'repeated-cv' ────────────
  <packageNotFoundError/error/condition>
  Error: The following packages could not be loaded: sf,ggtext
  Backtrace:
      ▆
   1. ├─ggplot2::autoplot(plots$rsp, plots$task) at test-1-autoplot.R:58:3
   2. └─mlr3spatiotempcv:::autoplot.ResamplingRepeatedCV(plots$rsp, plots$task)
   3.   └─mlr3spatiotempcv:::autoplot.ResamplingCV(...)
   4.     └─mlr3spatiotempcv:::autoplot_spatial(...)
   5.       └─mlr3misc::require_namespaces(c("sf", "patchwork", "ggtext"))
  ── Error ('test-1-autoplot.R:94:3'): plot() works for 'cv' with 'groups' col role ──
  <packageNotFoundError/error/condition>
  Error: The following packages could not be loaded: sf,ggtext
  Backtrace:
      ▆
   1. ├─ggplot2::autoplot(cv, task) at test-1-autoplot.R:94:3
   2. └─mlr3spatiotempcv:::autoplot.ResamplingCV(cv, task)
   3.   └─mlr3spatiotempcv:::autoplot_spatial(...)
   4.     └─mlr3misc::require_namespaces(c("sf", "patchwork", "ggtext"))
  ── Error ('test-1-autoplot.R:117:3'): plot() works for 'custom_cv' ─────────────
  <packageNotFoundError/error/condition>
  Error: The following packages could not be loaded: sf,ggtext
  Backtrace:
      ▆
   1. ├─ggplot2::autoplot(rsp, task) at test-1-autoplot.R:117:3
   2. └─mlr3spatiotempcv:::autoplot.ResamplingCustomCV(rsp, task)
   3.   └─mlr3spatiotempcv:::autoplot_custom_cv(...)
   4.     └─mlr3misc::require_namespaces(c("sf", "patchwork", "ggtext"))
  ── Error ('test-1-autoplot.R:149:3'): plot() works for 'spcv_coords' ───────────
  <packageNotFoundError/error/condition>
  Error: The following packages could not be loaded: sf,ggtext
  Backtrace:
      ▆
   1. ├─ggplot2::autoplot(plots$rsp, plots$task) at test-1-autoplot.R:149:3
   2. └─mlr3spatiotempcv:::autoplot.ResamplingSpCVCoords(plots$rsp, plots$task)
   3.   └─mlr3spatiotempcv:::autoplot_spatial(...)
   4.     └─mlr3misc::require_namespaces(c("sf", "patchwork", "ggtext"))
  ── Error ('test-1-autoplot.R:170:3'): plot() works for 'repeated_spcv_coords' ──
  <packageNotFoundError/error/condition>
  Error: The following packages could not be loaded: sf,ggtext
  Backtrace:
      ▆
   1. ├─ggplot2::autoplot(plots$rsp, plots$task) at test-1-autoplot.R:170:3
   2. └─mlr3spatiotempcv:::autoplot.ResamplingRepeatedSpCVCoords(...)
   3.   └─mlr3spatiotempcv:::autoplot.ResamplingSpCVCoords(...)
   4.     └─mlr3spatiotempcv:::autoplot_spatial(...)
   5.       └─mlr3misc::require_namespaces(c("sf", "patchwork", "ggtext"))
  ── Error ('test-2-autoplot.R:93:3'): plot() works for 'sptcv_cstf' ─────────────
  <packageNotFoundError/error/condition>
  Error: The following packages could not be loaded: sf,ggtext
  Backtrace:
      ▆
   1. ├─base::suppressWarnings(...) at test-2-autoplot.R:93:3
   2. │ └─base::withCallingHandlers(...)
   3. ├─ggplot2::autoplot(rsp, tsk_cookfarm_sub, 1, plot3D = TRUE, plot_time_var = "Date")
   4. └─mlr3spatiotempcv:::autoplot.ResamplingSptCVCstf(...)
   5.   └─mlr3misc::require_namespaces(c("sf", "patchwork", "ggtext"))
  ── Error ('test-2-autoplot.R:152:3'): plot() works for 'repeated_spcv_cstf' ────
  <packageNotFoundError/error/condition>
  Error: The following packages could not be loaded: sf,ggtext
  Backtrace:
      ▆
   1. ├─base::suppressWarnings(...) at test-2-autoplot.R:152:3
   2. │ └─base::withCallingHandlers(...)
   3. ├─ggplot2::autoplot(...)
   4. └─mlr3spatiotempcv:::autoplot.ResamplingRepeatedSptCVCstf(...)
   5.   └─mlr3spatiotempcv:::autoplot.ResamplingSptCVCstf(...)
   6.     └─mlr3misc::require_namespaces(c("sf", "patchwork", "ggtext"))
  ── Error ('test-2-autoplot.R:224:3'): plot() works for 'spcv_disc' ─────────────
  <packageNotFoundError/error/condition>
  Error: The following packages could not be loaded: sf,ggtext
  Backtrace:
      ▆
   1. ├─ggplot2::autoplot(rsp, task = task) at test-2-autoplot.R:224:3
   2. └─mlr3spatiotempcv:::autoplot.ResamplingRepeatedSpCVDisc(rsp, task = task)
   3.   └─mlr3spatiotempcv:::autoplot.ResamplingSpCVDisc(...)
   4.     └─mlr3misc::require_namespaces(c("sf", "patchwork", "ggtext"))
  ── Error ('test-2-autoplot.R:278:3'): plot() works for 'spcv_tiles' ────────────
  <packageNotFoundError/error/condition>
  Error: The following packages could not be loaded: sf,ggtext
  Backtrace:
      ▆
   1. ├─ggplot2::autoplot(rsp, task = task) at test-2-autoplot.R:278:3
   2. └─mlr3spatiotempcv:::autoplot.ResamplingRepeatedSpCVTiles(...)
   3.   └─mlr3spatiotempcv:::autoplot.ResamplingSpCVTiles(...)
   4.     └─mlr3misc::require_namespaces(c("sf", "patchwork", "ggtext"))
  ── Error ('test-2-autoplot.R:322:3'): plot() works for 'spcv_knndm' ────────────
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'sf'
  Backtrace:
      ▆
   1. └─base::loadNamespace(x) at test-2-autoplot.R:322:3
   2.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   3.     └─base (local) withOneRestart(expr, restarts[[1L]])
   4.       └─base (local) doWithOneRestart(return(expr), restart)
  
  [ FAIL 11 | WARN 1 | SKIP 74 | PASS 1029 ]
  Deleting unused snapshots:
  • 1-autoplot/autoplot-show-blocks-true-show-labels-true.svg
  • 1-autoplot/custom-cv-all-test-sets.svg
  • 1-autoplot/custom-cv-fold-1-2-sample-fold-n.svg
  • 1-autoplot/custom-cv-fold-1-2.svg
  • 1-autoplot/custom-cv-fold-1-sample-fold-n.svg
  • 1-autoplot/custom-cv-fold-1.svg
  • 1-autoplot/custom-cv-sample-fold-n.svg
  • 1-autoplot/cv-all-test-sets-groups-col-role.svg
  • 1-autoplot/cv-all-test-sets.svg
  • 1-autoplot/cv-fold-1-2-groups-col-role.svg
  • 1-autoplot/cv-fold-1-2-sample-fold-n.svg
  • 1-autoplot/cv-fold-1-2.svg
  • 1-autoplot/cv-fold-1-groups-col-role.svg
  • 1-autoplot/cv-fold-1-sample-fold-n.svg
  • 1-autoplot/cv-fold-1.svg
  • 1-autoplot/cv-sample-fold-n.svg
  • 1-autoplot/repcv-all-test-sets.svg
  • 1-autoplot/repcv-fold-1-2-rep-1.svg
  • 1-autoplot/repcv-fold-1-2-rep-2.svg
  • 1-autoplot/repcv-fold-1-rep-1.svg
  • 1-autoplot/repcv-fold-1-rep-2.svg
  • 1-autoplot/repspcvblock-all-test-sets.svg
  • 1-autoplot/repspcvblock-fold-1-2-rep-1.svg
  • 1-autoplot/repspcvblock-fold-1-2-rep-2.svg
  • 1-autoplot/repspcvblock-fold-1-rep-1.svg
  • 1-autoplot/repspcvblock-fold-1-rep-2.svg
  • 1-autoplot/repspcvcoords-all-test-sets.svg
  • 1-autoplot/repspcvcoords-fold-1-2-rep-1.svg
  • 1-autoplot/repspcvcoords-fold-1-2-rep-2.svg
  • 1-autoplot/repspcvcoords-fold-1-2-sample-fold-n.svg
  • 1-autoplot/repspcvcoords-fold-1-rep-1.svg
  • 1-autoplot/repspcvcoords-fold-1-rep-2.svg
  • 1-autoplot/repspcvcoords-fold-1-sample-fold-n.svg
  • 1-autoplot/repspcvcoords-sample-fold-n.svg
  • 1-autoplot/repspcvenv-all-test-sets.svg
  • 1-autoplot/repspcvenv-fold-1-2-rep-1.svg
  • 1-autoplot/repspcvenv-fold-1-2-rep-2.svg
  • 1-autoplot/repspcvenv-fold-1-rep-1.svg
  • 1-autoplot/repspcvenv-fold-1-rep-2.svg
  • 1-autoplot/spcvblock-all-test-sets.svg
  • 1-autoplot/spcvblock-fold-1-2-sample-fold-n.svg
  • 1-autoplot/spcvblock-fold-1-2.svg
  • 1-autoplot/spcvblock-fold-1-sample-fold-n.svg
  • 1-autoplot/spcvblock-fold-1.svg
  • 1-autoplot/spcvblock-sample-fold-n.svg
  • 1-autoplot/spcvcoords-all-test-sets.svg
  • 1-autoplot/spcvcoords-fold-1-2.svg
  • 1-autoplot/spcvcoords-fold-1.svg
  • 1-autoplot/spcvenv-all-test-sets.svg
  • 1-autoplot/spcvenv-fold-1-2-sample-fold-n.svg
  • 1-autoplot/spcvenv-fold-1-2.svg
  • 1-autoplot/spcvenv-fold-1-sample-fold-n.svg
  • 1-autoplot/spcvenv-fold-1.svg
  • 1-autoplot/spcvenv-sample-fold-n.svg
  • 2-autoplot/repspcvdisc-fold-1-2-rep-2.svg
  • 2-autoplot/repspcvdisc-fold-1-2-sample-fold-n.svg
  • 2-autoplot/repspcvdisc-fold-1-rep-1-sample-n-fold.svg
  • 2-autoplot/repspcvdisc-fold-1-rep-2.svg
  • 2-autoplot/repspcvdisc-fold-1-sample-fold-n.svg
  • 2-autoplot/repspcvdisc-sample-fold-n.svg
  • 2-autoplot/repspcvknndm-fold-1-2-rep-2.svg
  • 2-autoplot/repspcvknndm-fold-1-2-sample-fold-n.svg
  • 2-autoplot/repspcvknndm-fold-1-rep-1-sample-n-fold.svg
  • 2-autoplot/repspcvknndm-fold-1-rep-2.svg
  • 2-autoplot/repspcvknndm-fold-1-sample-fold-n.svg
  • 2-autoplot/repspcvknndm-sample-fold-n.svg
  • 2-autoplot/repspcvtiles-all-test-sets.svg
  • 2-autoplot/repspcvtiles-fold-1-2-rep-2.svg
  • 2-autoplot/repspcvtiles-fold-1-2-sample-fold-n.svg
  • 2-autoplot/repspcvtiles-fold-1-2.svg
  • 2-autoplot/repspcvtiles-fold-1-rep-2.svg
  • 2-autoplot/repspcvtiles-fold-1-sample-fold-n.svg
  • 2-autoplot/repspcvtiles-fold-1.svg
  • 2-autoplot/repspcvtiles-sample-fold-n.svg
  • 2-autoplot/repspcvtiles-show-omitted.svg
  • 2-autoplot/repsptcvcstf-2d-space-var-fold-1-2-rep-2.svg
  • 2-autoplot/repsptcvcstf-2d-space-var-fold-1-rep-2.svg
  • 2-autoplot/repsptcvcstf-fold-1-2-rep-1.svg
  • 2-autoplot/repsptcvcstf-fold-1-2-rep-2.svg
  • 2-autoplot/repsptcvcstf-fold-1-rep-1-sample-fold-n.svg
  • 2-autoplot/repsptcvcstf-fold-1-rep-1-show-omitted.svg
  • 2-autoplot/repsptcvcstf-fold-1-rep-2.svg
  • 2-autoplot/spcvdisc-all-test-sets.svg
  • 2-autoplot/spcvdisc-fold-1-2.svg
  • 2-autoplot/spcvdisc-fold-1.svg
  • 2-autoplot/spcvdisc-show-omitted.svg
  • 2-autoplot/spcvknndm-all-test-sets.svg
  • 2-autoplot/spcvknndm-fold-1-2.svg
  • 2-autoplot/spcvknndm-fold-1.svg
  • 2-autoplot/sptcvcstf-2d-space-var-all-test-sets.svg
  • 2-autoplot/sptcvcstf-2d-space-var-fold-1-2.svg
  • 2-autoplot/sptcvcstf-2d-space-var-fold-1.svg
  • 2-autoplot/sptcvcstf-2d-time-var-all-test-sets.svg
  • 2-autoplot/sptcvcstf-2d-time-var-fold-1-2-rep-2.svg
  • 2-autoplot/sptcvcstf-2d-time-var-fold-1-2-sample-fold-n.svg
  • 2-autoplot/sptcvcstf-2d-time-var-fold-1-2.svg
  • 2-autoplot/sptcvcstf-2d-time-var-fold-1-rep-2.svg
  • 2-autoplot/sptcvcstf-2d-time-var-fold-1-sample-fold-n.svg
  • 2-autoplot/sptcvcstf-2d-time-var-fold-1.svg
  • 2-autoplot/sptcvcstf-2d-time-var-sample-fold-n.svg
  • 2-autoplot/sptcvcstf-3d-time-var-fold-1-2-sample-fold-n.svg
  • 2-autoplot/sptcvcstf-3d-time-var-fold-1-2.svg
  • 2-autoplot/sptcvcstf-3d-time-var-fold-1-sample-fold-n.svg
  • 2-autoplot/sptcvcstf-3d-time-var-fold-1.svg
  • 2-autoplot/sptcvcstf-omitted-points-3d.svg
  • autoplot_buffer/spcvbuffer-fold-1-2.svg
  • autoplot_buffer/spcvbuffer-fold-1.svg
  Error: Test failures
  Execution halted