# NOT RUN {
if (mlr3misc::require_namespaces(c("sf", "plotly"), quietly = TRUE)) {
library(mlr3)
library(mlr3spatiotempcv)
task_st = tsk("cookfarm")
resampling = rsmp("sptcv_cstf",
folds = 5, time_var = "Date",
space_var = "SOURCEID")
resampling$instantiate(task_st)
# with both `space_var` and `time_var` (LLTO), the omitted observations per
# fold can be shown by setting `show_omitted = TRUE`
autoplot(resampling, task_st, fold_id = 1, show_omitted = TRUE)
}
# }
Run the code above in your browser using DataLab