CRAN Package Check Results for Package snic

Last updated on 2025-12-05 12:50:15 CET.

Flavor Version Tinstall Tcheck Ttotal Status Flags
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

Check Details

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