- using R version 4.3.1 (2023-06-16)
- using platform: aarch64-apple-darwin20 (64-bit)
- R was compiled by
Apple clang version 14.0.0 (clang-1400.0.29.202)
GNU Fortran (GCC) 12.2.0
- running under: macOS Ventura 13.4
- using session charset: UTF-8
- checking for file ‘mlr3spatiotempcv/DESCRIPTION’ ... OK
- this is package ‘mlr3spatiotempcv’ version ‘2.3.1’
- package encoding: UTF-8
- checking package namespace information ... OK
- checking package dependencies ... OK
- checking if this is a source package ... OK
- checking if there is a namespace ... OK
- checking for executable files ... OK
- checking for hidden files and directories ... OK
- checking for portable file names ... OK
- checking for sufficient/correct file permissions ... OK
- checking whether package ‘mlr3spatiotempcv’ can be installed ... [7s/8s] OK
See the install log for details.
- checking installed package size ... OK
- checking package directory ... OK
- checking ‘build’ directory ... OK
- checking DESCRIPTION meta-information ... OK
- checking top-level files ... OK
- checking for left-over files ... OK
- checking index information ... OK
- checking package subdirectories ... OK
- checking R files for non-ASCII characters ... OK
- checking R files for syntax errors ... OK
- checking whether the package can be loaded ... [1s/1s] OK
- checking whether the package can be loaded with stated dependencies ... [1s/1s] OK
- checking whether the package can be unloaded cleanly ... [1s/1s] OK
- checking whether the namespace can be loaded with stated dependencies ... [1s/1s] OK
- checking whether the namespace can be unloaded cleanly ... [1s/1s] OK
- checking loading without being on the library search path ... [1s/1s] OK
- checking startup messages can be suppressed ... [1s/1s] OK
- checking dependencies in R code ... OK
- checking S3 generic/method consistency ... OK
- checking replacement functions ... OK
- checking foreign function calls ... OK
- checking R code for possible problems ... [6s/7s] OK
- checking Rd files ... [0s/1s] OK
- checking Rd metadata ... OK
- checking Rd cross-references ... OK
- checking for missing documentation entries ... OK
- checking for code/documentation mismatches ... OK
- checking Rd \usage sections ... OK
- checking Rd contents ... OK
- checking for unstated dependencies in examples ... OK
- checking contents of ‘data’ directory ... OK
- checking data for non-ASCII characters ... [1s/1s] OK
- checking LazyData ... OK
- checking data for ASCII and uncompressed saves ... OK
- checking installed files from ‘inst/doc’ ... OK
- checking files in ‘vignettes’ ... OK
- checking examples ... [5s/6s] ERROR
Running examples in ‘mlr3spatiotempcv-Ex.R’ failed
The error most likely occurred in:
> ### Name: mlr_resamplings_repeated_spcv_knndm
> ### Title: (CAST) Repeated K-fold Nearest Neighbour Distance Matching
> ### Aliases: mlr_resamplings_repeated_spcv_knndm
> ### ResamplingRepeatedSpCVKnndm
>
> ### ** Examples
>
> library(mlr3)
> library(mlr3spatial)
Attaching package: ‘mlr3spatial’
The following objects are masked from ‘package:mlr3spatiotempcv’:
TaskClassifST, TaskRegrST, as_task_classif_st,
as_task_classif_st.DataBackend, as_task_classif_st.TaskClassifST,
as_task_classif_st.data.frame, as_task_classif_st.sf,
as_task_regr_st, as_task_regr_st.DataBackend,
as_task_regr_st.TaskClassifST, as_task_regr_st.TaskRegrST,
as_task_regr_st.data.frame, as_task_regr_st.sf
> set.seed(42)
> simarea = list(matrix(c(0, 0, 0, 100, 100, 100, 100, 0, 0, 0), ncol = 2, byrow = TRUE))
> simarea = sf::st_polygon(simarea)
> train_points = sf::st_sample(simarea, 1000, type = "random")
> train_points = sf::st_as_sf(train_points)
> train_points$target = as.factor(sample(c("TRUE", "FALSE"), 1000, replace = TRUE))
> pred_points = sf::st_sample(simarea, 1000, type = "regular")
>
> task = mlr3spatial::as_task_classif_st(sf::st_as_sf(train_points), "target", positive = "TRUE")
>
> cv_knndm = rsmp("repeated_spcv_knndm", predpoints = pred_points, repeats = 2)
> cv_knndm$instantiate(task)
Error in CAST::knndm(tpoints = points, modeldomain = self$param_set$values$modeldomain, :
unused argument (predpoints = self$param_set$values$predpoints)
Calls: <Anonymous> ... .__ResamplingRepeatedSpCVKnndm__.sample -> map -> lapply -> FUN
Execution halted
- checking for unstated dependencies in ‘tests’ ... OK
- checking tests ... [41s/35s] ERROR
Running ‘testthat.R’ [41s/35s]
Running the tests in ‘tests/testthat.R’ failed.
Last 13 lines of output:
• 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-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
• autoplot_buffer/spcvbuffer-fold-1-2.svg
Error: Test failures
Execution halted
- checking for unstated dependencies in vignettes ... OK
- checking package vignettes in ‘inst/doc’ ... OK
- checking running R code from vignettes ... [0s/1s] NONE
‘mlr3spatiotempcv.Rmd’ using ‘UTF-8’... [0s/0s] OK
‘spatiotemp-viz.Rmd’ using ‘UTF-8’... [0s/0s] OK
- checking re-building of vignette outputs ... [18s/25s] OK
- checking PDF version of manual ... [5s/6s] OK
- DONE
Status: 2 ERRORs
- using check arguments '--no-clean-on-error '