# \donttest{
if (mlr3misc::require_namespaces(c("sf", "plotly"), quietly = TRUE)) {
library(mlr3)
library(mlr3spatiotempcv)
task_st = tsk("cookfarm_mlr3")
task_st$set_col_roles("SOURCEID", "space")
task_st$set_col_roles("Date", "time")
resampling = rsmp("sptcv_cstf", folds = 5)
resampling$instantiate(task_st)
# with both `"space"` and `"time"` column roles set (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