• using R Under development (unstable) (2026-11-23 r90965)
  • using platform: x86_64-pc-linux-gnu
  • R was compiled by     clang version 23.1.6     flang version 23.1.6
  • running under: Fedora Linux 44 (Server Edition)
  • using session charset: UTF-8 * current time: 2026-11-23 15:33:56 UTC
  • using option ‘--no-stop-on-test-error’
  • checking for file ‘spatialkit/DESCRIPTION’ ... OK
  • this is package ‘spatialkit’ version ‘3.0.0’
  • package encoding: UTF-8
  • checking package namespace information ... OK
  • checking package dependencies ... INFO Package suggested but not available for checking: 'cmdstanr'
  • 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 ‘spatialkit’ can be installed ... [32s/42s] OK See the install log for details.
  • checking installed package size ... INFO   installed size is 9.3Mb   sub-directories of 1Mb or more:     R 4.0Mb     doc 2.9Mb     help 2.0Mb
  • 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 code files for non-ASCII characters ... OK
  • checking R files for syntax errors ... OK
  • checking whether the package can be loaded ... OK
  • checking whether the package can be loaded with stated dependencies ... OK
  • checking whether the package can be unloaded cleanly ... OK
  • checking whether the namespace can be loaded with stated dependencies ... OK
  • checking whether the namespace can be unloaded cleanly ... OK
  • checking loading without being on the library search path ... OK
  • checking whether startup messages can be suppressed ... OK
  • checking use of S3 registration ... 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 ... [96s/171s] OK
  • checking Rd files ... OK
  • checking Rd metadata ... OK
  • checking Rd line widths ... 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 installed files from ‘inst/doc’ ... OK
  • checking files in ‘vignettes’ ... OK
  • checking examples ... [0m/30m] ERROR Running examples in ‘spatialkit-Ex.R’ failed The error most likely occurred in: > ### Name: cv_block_size_sweep > ### Title: Cross-validate at a ladder of block sizes > ### Aliases: cv_block_size_sweep plot.block_size_sweep > > ### ** Examples > > ## Don't show: > if (requireNamespace("ranger", quietly = TRUE) && requireNamespace("gstat", quietly = TRUE)) withAutoprint({ # examplesIf + ## End(Don't show) + library(sf) + set.seed(1) + n <- 200 + x <- 5e5 + runif(n, 0, 1000); y <- 5e6 + runif(n, 0, 1000) + d <- as.matrix(dist(cbind(x, y))) + field <- as.numeric(t(chol(exp(-d / 100) + diag(1e-6, n))) %*% rnorm(n)) + dat <- st_as_sf(data.frame(x = x, y = y, a = rnorm(n)), coords = c("x", "y"), + crs = 32632) + dat$z <- field + 0.5 * dat$a + rnorm(n, 0, 0.2) + rf_fn <- function(train_sf) + fit_rf_model(train_sf, "z", "a", include_coords = TRUE, num_trees = 100, + seed = 1) + sw <- cv_block_size_sweep(dat, "z", "a", fit_fn = rf_fn, k = 4, n_sizes = 4, + quiet = TRUE) + sw # the curve as a table, with the random-fold reference + + # Dashed: the random-fold reference. Dotted: the estimated + # autocorrelation range. + if (requireNamespace("ggplot2", quietly = TRUE)) plot(sw) + ## Don't show: + }) # examplesIf > library(sf) Linking to GEOS 3.14.1, GDAL 3.12.4, PROJ 9.8.1; sf_use_s2() is TRUE > set.seed(1) > n <- 200 > x <- 5e+05 + runif(n, 0, 1000) > y <- 5e+06 + runif(n, 0, 1000) > d <- as.matrix(dist(cbind(x, y))) > field <- as.numeric(t(chol(exp(-d/100) + diag(1e-06, n))) %*% rnorm(n)) OMP: Warning #96: Cannot form a team with 28 threads, using 2 instead. OMP: Hint Consider unsetting KMP_DEVICE_THREAD_LIMIT (KMP_ALL_THREADS), KMP_TEAMS_THREAD_LIMIT, and OMP_THREAD_LIMIT (if any are set).
  • checking for unstated dependencies in ‘tests’ ... OK
  • checking tests ... [90m/52m] ERROR   Running ‘testthat.R’ [90m/52m] Running the tests in ‘tests/testthat.R’ failed. Complete output:   > library(testthat)   > library(spatialkit)   >   > # CRAN runs the files listed in cran-tests.txt, which keeps the check inside   > # its time budget. With NOT_CRAN=true, as in CI and devtools::test(), every   > # test file runs.   > filter <- NULL   > if (!identical(Sys.getenv("NOT_CRAN"), "true")) {   + files <- readLines("cran-tests.txt")   + files <- files[nzchar(files) & !startsWith(files, "#")]   + filter <- paste0("^(", paste(files, collapse = "|"), ")$")   + }   >   > test_check("spatialkit", filter = filter)   WARN [2026-11-23 16:09:24] area_of_applicability(): every weight is zero (a, b), which says nothing about how the predictors compare; weighting them equally, as weights = NULL does. pmax(importance, 0) is all zero when the model found no predictor useful.   WARN [2026-11-23 16:09:26] area_of_applicability(): dropping predictor(s) with no variance in the training data: const. A prediction point taking a different value there is extrapolation along it, and is marked outside the AOA with DI = Inf.   WARN [2026-11-23 16:09:27] area_of_applicability(): dropping 1 training row(s) with missing or non-finite predictor values.   WARN [2026-11-23 16:09:30] fit_rf_model(): include_coords = TRUE. The forest splits on location and can fit the training surface by memorising location, so its error grows quickly with the distance from the data. The out-of-bag error and random cross-validation measure it among the samples: the error of a map over an area the samples cover evenly, which reads low for predictions made farther from the data. How much the coordinates help depends on how far from the training data the predictions are: the gain is largest between sampled points, fades with distance, and can reverse in a region the data never visited (Meyer et al. 2019). Score the forest with cv_rf() on blocked or distance-matched folds at the distances the map will predict at (make_folds(method = "block_kfold") or "nndm"), and compare it on the same folds with the forest fitted without coordinates: build the folds once with make_folds() and pass them as `folds` to two cv_rf() calls, one with include_coords = TRUE and one without. ?cv_rf shows the two calls. (This is logged once per session.)   WARN [2026-11-23 16:09:32] assign_features_to_polygons(): 1 of 3 feature(s) (33.3%) fall inside no polygon and are left out of the result; attr(, "unassigned")$which gives their rows in `features_sf`. Check that the polygons cover the features (cells built from seeds need a `boundary` or a `cover`; see build_tessellation()), or pass keep_unassigned = TRUE to keep them with an NA ID.   WARN [2026-11-23 16:09:33] assign_features_to_polygons(): 1 of 3 feature(s) (33.3%) fall inside no polygon and are left out of the result; attr(, "unassigned")$which gives their rows in `features_sf`. Check that the polygons cover the features (cells built from seeds need a `boundary` or a `cover`; see build_tessellation()), or pass keep_unassigned = TRUE to keep them with an NA ID.   WARN [2026-11-23 16:09:33] assign_features_to_polygons(): 1 of 3 feature(s) (33.3%) fall inside no polygon and are left out of the result; attr(, "unassigned")$which gives their rows in `features_sf`. Check that the polygons cover the features (cells built from seeds need a `boundary` or a `cover`; see build_tessellation()), or pass keep_unassigned = TRUE to keep them with an NA ID.   WARN [2026-11-23 16:09:33] assign_features_to_polygons(): 1 of 3 feature(s) (33.3%) fall inside no polygon and are left out of the result; attr(, "unassigned")$which gives their rows in `features_sf`. Check that the polygons cover the features (cells built from seeds need a `boundary` or a `cover`; see build_tessellation()), or pass keep_unassigned = TRUE to keep them with an NA ID.   WARN [2026-11-23 16:09:33] assign_features_to_polygons(): 1 of 3 feature(s) (33.3%) fall inside no polygon and are left out of the result; attr(, "unassigned")$which gives their rows in `features_sf`. Check that the polygons cover the features (cells built from seeds need a `boundary` or a `cover`; see build_tessellation()), or pass keep_unassigned = TRUE to keep them with an NA ID.   WARN [2026-11-23 16:09:33] assign_features_to_polygons(): 1 of 3 feature(s) (33.3%) fall inside no polygon and are left out of the result; attr(, "unassigned")$which gives their rows in `features_sf`. Check that the polygons cover the features (cells built from seeds need a `boundary` or a `cover`; see build_tessellation()), or pass keep_unassigned = TRUE to keep them with an NA ID.   WARN [2026-11-23 16:09:34] assign_features_to_polygons(): 1 of 3 feature(s) (33.3%) fall inside no polygon and are left out of the result; attr(, "unassigned")$which gives their rows in `features_sf`. Check that the polygons cover the features (cells built from seeds need a `boundary` or a `cover`; see build_tessellation()), or pass keep_unassigned = TRUE to keep them with an NA ID.   WARN [2026-11-23 16:09:34] assign_features_to_polygons(): 1 of 3 feature(s) (33.3%) fall inside no polygon and are left out of the result; attr(, "unassigned")$which gives their rows in `features_sf`. Check that the polygons cover the features (cells built from seeds need a `boundary` or a `cover`; see build_tessellation()), or pass keep_unassigned = TRUE to keep them with an NA ID.   assign_features_to_polygons(): `polygons_sf` has no 'cell_id' column; the polygon IDs are read from its 'poly_id' column and returned as `cell_id`.   WARN [2026-11-23 16:09:35] assign_features_to_polygons(): 1 of 3 feature(s) (33.3%) fall inside no polygon and are left out of the result; attr(, "unassigned")$which gives their rows in `features_sf`. Check that the polygons cover the features (cells built from seeds need a `boundary` or a `cover`; see build_tessellation()), or pass keep_unassigned = TRUE to keep them with an NA ID.   WARN [2026-11-23 16:09:35] assign_features_to_polygons(): 1 of 3 feature(s) (33.3%) fall inside no polygon and are left out of the result; attr(, "unassigned")$which gives their rows in `features_sf`. Check that the polygons cover the features (cells built from seeds need a `boundary` or a `cover`; see build_tessellation()), or pass keep_unassigned = TRUE to keep them with an NA ID.   WARN [2026-11-23 16:09:35] assign_features_to_polygons(): 1 of 3 feature(s) (33.3%) fall inside no polygon and are left out of the result; attr(, "unassigned")$which gives their rows in `features_sf`. Check that the polygons cover the features (cells built from seeds need a `boundary` or a `cover`; see build_tessellation()), or pass keep_unassigned = TRUE to keep them with an NA ID.   WARN [2026-11-23 16:09:35] assign_features_to_polygons(): 1 of 3 feature(s) (33.3%) fall inside no polygon and are left out of the result; attr(, "unassigned")$which gives their rows in `features_sf`. Check that the polygons cover the features (cells built from seeds need a `boundary` or a `cover`; see build_tessellation()), or pass keep_unassigned = TRUE to keep them with an NA ID.   WARN [2026-11-23 16:09:36] fit_gwr_model(): only 3 observations for 2 parameters; local regressions will be underdetermined.   WARN [2026-11-23 16:09:36] fit_gwr_model(): an adaptive bandwidth of 30 neighbours exceeds the 3 observations; using 3. With adaptive = TRUE the bandwidth is a count of neighbours; for a distance in CRS units, set adaptive = FALSE.   WARN [2026-11-23 16:09:36] fit_gwr_model(): AICc is undefined for this fit and is reported as NA. Its effective number of parameters, tr(S) = 3, is not below n - 2 = 1, so the local regressions (nearly) interpolate the data, and there the AICc formula turns negative: its value (-218.885) would rank this fit above better ones. Even the widest adaptive window (all 3 observations) leaves too few residual degrees of freedom for 2 parameters: use fewer predictors, more observations, or a gaussian or exponential kernel.   WARN [2026-11-23 16:09:41] residual_morans_i(): dropping 1 row(s) with an empty or non-finite geometry.   OMP: Warning #96: Cannot form a team with 28 threads, using 2 instead.   OMP: Hint Consider unsetting KMP_DEVICE_THREAD_LIMIT (KMP_ALL_THREADS), KMP_TEAMS_THREAD_LIMIT, and OMP_THREAD_LIMIT (if any are set).
  • checking for unstated dependencies in vignettes ... OK
  • checking package vignettes ... OK
  • checking re-building of vignette outputs ... [0m/90m] ERROR Error(s) in re-building vignettes: --- re-building ‘cells.Rmd’ using rmarkdown OMP: Warning #96: Cannot form a team with 28 threads, using 2 instead. OMP: Hint Consider unsetting KMP_DEVICE_THREAD_LIMIT (KMP_ALL_THREADS), KMP_TEAMS_THREAD_LIMIT, and OMP_THREAD_LIMIT (if any are set). --- re-building ‘getting-started.Rmd’ using rmarkdown WARN [2026-11-23 17:50:06] .pick_local_projected_crs(): extent reaches 5.5 deg from the central meridian of UTM zone 17 (8.9 deg of longitude in total). Using Albers equal-area (lat_1=34.3, lat_2=36.1, lon_0=-79.4) instead: measured worst-case distance error 0.01% against the zone's 0.21%, and that error propagates into variogram ranges, block sizes, GWR bandwidth and GP length-scales. Pass target_crs to ensure_projected() to override. WARN [2026-11-23 17:50:06] .pick_local_projected_crs(): extent reaches 5.1 deg from the central meridian of UTM zone 17 (8.1 deg of longitude in total). Using Albers equal-area (lat_1=34.5, lat_2=36.1, lon_0=-79.5) instead: measured worst-case distance error 0.01% against the zone's 0.21%, and that error propagates into variogram ranges, block sizes, GWR bandwidth and GP length-scales. Pass target_crs to ensure_projected() to override. WARN [2026-11-23 17:50:06] ensure_projected(): CRS is missing; assuming EPSG:4326 because bbox looks like lon/lat (xmin=-81.50, xmax=-81.10, ymin=36.40, ymax=36.50). Set CRS explicitly to suppress this warning. WARN [2026-11-23 17:50:08] estimate_sac_range(): no spatial structure detected at the nearest-neighbour scale: Moran's I of the residuals on predictor_vars on the 16 nearest neighbours is 0.041 (z = 2.06), the strongest of the 4 neighbourhoods tested, and the adjusted p-value is 0.079, not below structure_alpha = 0.05. Neighbouring values are no more alike than distant ones, so there is no range to estimate. Returning NA. plot() the returned value to see the variogram; set structure_alpha = 1 to fit a range regardless. WARN [2026-11-23 17:50:08] make_folds(block_kfold): auto_range = TRUE, but no autocorrelation range was identified (no spatial structure detected at the nearest-neighbour scale); falling back to geometric blocks, which are not sized from the data. See ?estimate_sac_range, or pass `block_size`. [WARNING] Deprecated: --mathjax. Use --math-method=mathjax[:URL] instead. --- finished re-building ‘getting-started.Rmd’ --- re-building ‘glossary.Rmd’ using rmarkdown [WARNING] Deprecated: --mathjax. Use --math-method=mathjax[:URL] instead. --- finished re-building ‘glossary.Rmd’ --- re-building ‘models.Rmd’ using rmarkdown OMP: Warning #96: Cannot form a team with 28 threads, using 2 instead. OMP: Hint Consider unsetting KMP_DEVICE_THREAD_LIMIT (KMP_ALL_THREADS), KMP_TEAMS_THREAD_LIMIT, and OMP_THREAD_LIMIT (if any are set).
  • checking PDF version of manual ... [14s/14s] OK
  • checking HTML version of manual ...