Last updated on 2025-12-06 00:49:01 CET.
| Flavor | Version | Tinstall | Tcheck | Ttotal | Status | Flags |
|---|---|---|---|---|---|---|
| r-devel-linux-x86_64-debian-gcc | 0.6.0 | 3.59 | 21.94 | 25.53 | ERROR | |
| r-devel-linux-x86_64-fedora-clang | 0.6.0 | 24.00 | 253.98 | 277.98 | OK | |
| r-devel-linux-x86_64-fedora-gcc | 0.6.0 | 18.00 | 279.42 | 297.42 | OK | |
| r-release-macos-arm64 | 0.6.0 | 2.00 | 68.00 | 70.00 | OK | |
| r-release-macos-x86_64 | 0.6.0 | 12.00 | 242.00 | 254.00 | OK | |
| r-oldrel-macos-arm64 | 0.6.0 | 2.00 | 57.00 | 59.00 | NOTE | |
| r-oldrel-macos-x86_64 | 0.6.0 | 11.00 | 158.00 | 169.00 | NOTE | |
| r-oldrel-windows-x86_64 | 0.6.0 | 16.00 | 193.00 | 209.00 | ERROR |
Version: 0.6.0
Check: package dependencies
Result: WARN
Cannot process vignettes
Packages suggested but not available for checking:
'terra', 'spelling', 'covr', 'magick', 'knitr', 'rmarkdown'
VignetteBuilder package required for checking but not installed: ‘knitr’
Flavor: r-devel-linux-x86_64-debian-gcc
Version: 0.6.0
Check: examples
Result: ERROR
Running examples in ‘snic-Ex.R’ failed
The error most likely occurred in:
> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: snic
> ### Title: Simple Non-Iterative Clustering (SNIC) segmentation
> ### Aliases: snic
>
> ### ** Examples
>
> # Example 1: Geospatial raster
> if (requireNamespace("terra", quietly = TRUE)) {
+ path <- system.file("demo-geotiff", package = "snic", mustWork = TRUE)
+ files <- file.path(
+ path,
+ c(
+ "S2_20LMR_B02_20220630.tif",
+ "S2_20LMR_B04_20220630.tif",
+ "S2_20LMR_B08_20220630.tif",
+ "S2_20LMR_B12_20220630.tif"
+ )
+ )
+
+ # Downsample for speed (optional)
+ s2 <- terra::aggregate(terra::rast(files), fact = 8)
+
+ # Generate a regular grid of seeds (lat/lon because CRS is present)
+ seeds <- snic_grid(
+ s2,
+ type = "rectangular",
+ spacing = 10L,
+ padding = 18L
+ )
+
+ # Run segmentation
+ seg <- snic(s2, seeds, compactness = 0.25)
+
+ # Visualize RGB composite with seeds and segment boundaries
+ snic_plot(
+ s2,
+ r = 4, g = 3, b = 1,
+ stretch = "lin",
+ seeds = seeds,
+ seg = seg
+ )
+ }
>
> # Example 2: In-memory image (JPEG) + Lab transform
> # Uses an example image shipped with the package (no terra needed)
> if (requireNamespace("jpeg", quietly = TRUE)) {
+ img_path <- system.file(
+ "demo-jpeg/clownfish.jpeg",
+ package = "snic",
+ mustWork = TRUE
+ )
+ rgb <- jpeg::readJPEG(img_path) # h x w x 3 in [0, 1]
+
+ # Convert sRGB -> CIE Lab for perceptual clustering
+ dims <- dim(rgb)
+ dim(rgb) <- c(dims[1] * dims[2], dims[3])
+ lab <- grDevices::convertColor(
+ rgb,
+ from = "sRGB",
+ to = "Lab",
+ scale.in = 1,
+ scale.out = 1 / 255
+ )
+ dim(lab) <- dims
+ dim(rgb) <- dims
+
+ # Seeds in pixel coordinates for array inputs
+ seeds_rc <- snic_grid(lab, type = "hexagonal", spacing = 20L)
+
+ # Segment in Lab space and plot L channel with boundaries
+ seg <- snic(lab, seeds_rc, compactness = 0.1)
+
+ snic_plot(
+ rgb,
+ r = 1L,
+ g = 2L,
+ b = 3L,
+ seg = seg,
+ seg_plot_args = list(
+ border = "black"
+ )
+ )
+ }
Error in loadNamespace(x) : there is no package called ‘terra’
Calls: snic_plot ... loadNamespace -> withRestarts -> withOneRestart -> doWithOneRestart
Execution halted
Flavor: r-devel-linux-x86_64-debian-gcc
Version: 0.6.0
Check: package vignettes
Result: NOTE
Package has ‘vignettes’ subdirectory but apparently no vignettes.
Perhaps the ‘VignetteBuilder’ information is missing from the
DESCRIPTION file?
Flavor: r-devel-linux-x86_64-debian-gcc
Version: 0.6.0
Check: HTML version of manual
Result: NOTE
Skipping checking math rendering: package 'V8' unavailable
Flavor: r-devel-linux-x86_64-debian-gcc
Version: 0.6.0
Check: installed package size
Result: NOTE
installed size is 6.3Mb
sub-directories of 1Mb or more:
demo-geotiff 1.3Mb
doc 3.2Mb
Flavors: r-oldrel-macos-arm64, r-oldrel-macos-x86_64, r-oldrel-windows-x86_64
Version: 0.6.0
Check: examples
Result: ERROR
Running examples in 'snic-Ex.R' failed
The error most likely occurred in:
> ### Name: seeds_api
> ### Title: Convert seed coordinates between raster index, map, and WGS84
> ### systems
> ### Aliases: seeds_api as_seeds_rc as_seeds_xy as_seeds_wgs84
>
> ### ** Examples
>
> if (requireNamespace("terra", quietly = TRUE)) {
+ # Load a test Sentinel-2 band
+ s2_file <- system.file(
+ "demo-geotiff/S2_20LMR_B04_20220630.tif",
+ package = "snic"
+ )
+ s2_rast <- terra::rast(s2_file)
+
+ # Create some test coordinates in pixel space
+ seeds_rc <- data.frame(r = c(10, 20, 30), c = c(15, 25, 35))
+
+ # Convert to map coordinates (x,y)
+ seeds_xy <- as_seeds_xy(seeds_rc, s2_rast)
+
+ # Convert to geographic coordinates (lat,lon)
+ seeds_wgs84 <- as_seeds_wgs84(seeds_rc, s2_rast)
+ }
Warning: PROJ: proj_create_from_database: Cannot find proj.db (GDAL error 1)
Error: [project] output crs is not valid
Execution halted
Flavor: r-oldrel-windows-x86_64
Version: 0.6.0
Check: tests
Result: ERROR
Running 'spelling.R' [0s]
Running 'testthat.R' [15s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
> library(testthat)
> library(snic)
>
> test_check("snic")
Saving _problems/test-grid-helpers-216.R
Saving _problems/test-grid-helpers-249.R
Saving _problems/test-grid-helpers-275.R
Saving _problems/test-grid-helpers-303.R
Saving _problems/test-grid-helpers-346.R
Saving _problems/test-plot-140.R
Saving _problems/test-snic-core-56.R
Saving _problems/test-snic-generic-67.R
[ FAIL 8 | WARN 33 | SKIP 0 | PASS 119 ]
══ Failed tests ════════════════════════════════════════════════════════════════
── Error ('test-grid-helpers.R:211:5'): rectangular grids match counts and spacing for arrays and rasters ──
Error in `.wgs84_to_xy.SpatRaster(x, seeds_wgs84)`: .seeds_type(seeds_wgs84) == "wgs84" is not TRUE
Backtrace:
▆
1. └─snic (local) expect_grid_consistency(...) at test-grid-helpers.R:211:5
2. └─snic:::.wgs84_to_rc(imgs$SpatRaster, rast_seeds) at test-grid-helpers.R:72:9
3. ├─snic:::.wgs84_to_xy(x, seeds_wgs84)
4. └─snic:::.wgs84_to_xy.SpatRaster(x, seeds_wgs84)
5. └─base::stopifnot(.seeds_type(seeds_wgs84) == "wgs84")
── Error ('test-grid-helpers.R:244:5'): diamond grids add shifted points while staying within padded bounds ──
Error in `.wgs84_to_xy.SpatRaster(x, seeds_wgs84)`: .seeds_type(seeds_wgs84) == "wgs84" is not TRUE
Backtrace:
▆
1. └─snic (local) expect_grid_consistency(...) at test-grid-helpers.R:244:5
2. └─snic:::.wgs84_to_rc(imgs$SpatRaster, rast_seeds) at test-grid-helpers.R:72:9
3. ├─snic:::.wgs84_to_xy(x, seeds_wgs84)
4. └─snic:::.wgs84_to_xy.SpatRaster(x, seeds_wgs84)
5. └─base::stopifnot(.seeds_type(seeds_wgs84) == "wgs84")
── Error ('test-grid-helpers.R:270:5'): hexagonal grids generate additional offset rows for both backends ──
Error in `.wgs84_to_xy.SpatRaster(x, seeds_wgs84)`: .seeds_type(seeds_wgs84) == "wgs84" is not TRUE
Backtrace:
▆
1. └─snic (local) expect_grid_consistency(...) at test-grid-helpers.R:270:5
2. └─snic:::.wgs84_to_rc(imgs$SpatRaster, rast_seeds) at test-grid-helpers.R:72:9
3. ├─snic:::.wgs84_to_xy(x, seeds_wgs84)
4. └─snic:::.wgs84_to_xy.SpatRaster(x, seeds_wgs84)
5. └─base::stopifnot(.seeds_type(seeds_wgs84) == "wgs84")
── Error ('test-grid-helpers.R:297:5'): random grids are reproducible, unique, and match count estimates ──
Error in `.wgs84_to_xy.SpatRaster(x, seeds_wgs84)`: .seeds_type(seeds_wgs84) == "wgs84" is not TRUE
Backtrace:
▆
1. └─snic (local) expect_grid_consistency(...) at test-grid-helpers.R:297:5
2. └─snic:::.wgs84_to_rc(imgs$SpatRaster, rast_seeds) at test-grid-helpers.R:72:9
3. ├─snic:::.wgs84_to_xy(x, seeds_wgs84)
4. └─snic:::.wgs84_to_xy.SpatRaster(x, seeds_wgs84)
5. └─base::stopifnot(.seeds_type(seeds_wgs84) == "wgs84")
── Error ('test-grid-helpers.R:341:5'): single seed per dimension is centered for both backends ──
Error in `.wgs84_to_xy.SpatRaster(x, seeds_wgs84)`: .seeds_type(seeds_wgs84) == "wgs84" is not TRUE
Backtrace:
▆
1. └─snic (local) expect_grid_consistency(...) at test-grid-helpers.R:341:5
2. └─snic:::.wgs84_to_rc(imgs$SpatRaster, rast_seeds) at test-grid-helpers.R:72:9
3. ├─snic:::.wgs84_to_xy(x, seeds_wgs84)
4. └─snic:::.wgs84_to_xy.SpatRaster(x, seeds_wgs84)
5. └─base::stopifnot(.seeds_type(seeds_wgs84) == "wgs84")
── Error ('test-plot.R:140:9'): seed overlays align for rc, xy, and wgs84 inputs ──
Error: [project] output crs is not valid
Backtrace:
▆
1. └─snic:::.rc_to_wgs84(template, seeds_rc) at test-plot.R:140:9
2. ├─snic:::.xy_to_wgs84(x, seeds_xy)
3. └─snic:::.xy_to_wgs84.SpatRaster(x, seeds_xy)
4. ├─terra::project(v, "EPSG:4326")
5. └─terra::project(v, "EPSG:4326")
6. └─terra (local) .local(x, ...)
7. └─terra:::messages(x, "project")
8. └─terra:::error(f, x@pntr$getError())
── Error ('test-snic-core.R:56:5'): SpatRaster inputs accept WGS84 seeds ───────
Error: [project] input crs is not valid
Backtrace:
▆
1. └─snic:::.rc_to_wgs84(backends$raster, seeds_rc) at test-snic-core.R:56:5
2. ├─snic:::.xy_to_wgs84(x, seeds_xy)
3. └─snic:::.xy_to_wgs84.SpatRaster(x, seeds_xy)
4. ├─terra::project(v, "EPSG:4326")
5. └─terra::project(v, "EPSG:4326")
6. └─terra (local) .local(x, ...)
7. └─terra:::messages(x, "project")
8. └─terra:::error(f, x@pntr$getError())
── Error ('test-snic-generic.R:67:5'): SpatRaster: round-trip conversions with defined CRS (WGS84) are consistent ──
Error: [project] input crs is not valid
Backtrace:
▆
1. ├─snic:::.wgs84_to_rc(rast, .rc_to_wgs84(rast, seeds_rc)) at test-snic-generic.R:67:5
2. │ ├─snic:::.wgs84_to_xy(x, seeds_wgs84)
3. │ └─snic:::.wgs84_to_xy.SpatRaster(x, seeds_wgs84)
4. │ ├─base::stopifnot(.seeds_type(seeds_wgs84) == "wgs84")
5. │ └─snic:::.seeds_type(seeds_wgs84)
6. │ ├─c("r", "c") %in% colnames(seeds)
7. │ └─base::colnames(seeds)
8. │ └─base::is.data.frame(x)
9. └─snic:::.rc_to_wgs84(rast, seeds_rc)
10. ├─snic:::.xy_to_wgs84(x, seeds_xy)
11. └─snic:::.xy_to_wgs84.SpatRaster(x, seeds_xy)
12. ├─terra::project(v, "EPSG:4326")
13. └─terra::project(v, "EPSG:4326")
14. └─terra (local) .local(x, ...)
15. └─terra:::messages(x, "project")
16. └─terra:::error(f, x@pntr$getError())
[ FAIL 8 | WARN 33 | SKIP 0 | PASS 119 ]
Error:
! Test failures.
Execution halted
Flavor: r-oldrel-windows-x86_64
Version: 0.6.0
Check: re-building of vignette outputs
Result: ERROR
Error(s) in re-building vignettes:
--- re-building 'snic-array-pipeline.Rmd' using rmarkdown
--- finished re-building 'snic-array-pipeline.Rmd'
--- re-building 'snic-spatraster-pipeline.Rmd' using rmarkdown
Quitting from snic-spatraster-pipeline.Rmd:70-74 [seeds]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<error/rlang_error>
Error:
! [project] output crs is not valid
---
Backtrace:
▆
1. └─snic::snic_grid(s2, type = "rectangular", spacing = 24, padding = 2)
2. └─snic:::.rc_to_wgs84(x, seeds)
3. ├─snic:::.xy_to_wgs84(x, seeds_xy)
4. └─snic:::.xy_to_wgs84.SpatRaster(x, seeds_xy)
5. ├─terra::project(v, "EPSG:4326")
6. └─terra::project(v, "EPSG:4326")
7. └─terra (local) .local(x, ...)
8. └─terra:::messages(x, "project")
9. └─terra:::error(f, x@pntr$getError())
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Error: processing vignette 'snic-spatraster-pipeline.Rmd' failed with diagnostics:
[project] output crs is not valid
--- failed re-building 'snic-spatraster-pipeline.Rmd'
SUMMARY: processing the following file failed:
'snic-spatraster-pipeline.Rmd'
Error: Vignette re-building failed.
Execution halted
Flavor: r-oldrel-windows-x86_64