CRAN Package Check Results for Maintainer ‘Alex M Chubaty <alex.chubaty at gmail.com>’

Last updated on 2025-01-15 05:50:47 CET.

Package ERROR OK
grainscape 8 5

Package grainscape

Current CRAN status: ERROR: 8, OK: 5

Version: 0.4.4
Check: Rd cross-references
Result: NOTE Found the following Rd file(s) with Rd \link{} targets missing package anchors: MPG.Rd: igraph, projectRaster corridor.Rd: SpatialPoints distance.Rd: SpatialPoints export.Rd: writeFormats ggGS.Rd: ggplot goc-class.Rd: igraph grainscape-deprecated.Rd: SpatialPolygonsDataFrame, SpatialPoints patchFilter.Rd: clump plot.Rd: ggplot point.Rd: SpatialPoints theme_grainscape.Rd: ggplot2, ggplot Please provide package anchors for all Rd \link{} targets not in the package itself and the base packages. Flavors: r-devel-linux-x86_64-debian-clang, r-devel-linux-x86_64-debian-gcc, r-devel-windows-x86_64

Version: 0.4.4
Check: tests
Result: ERROR Running ‘test-all.R’ [59s/84s] Running the tests in ‘tests/test-all.R’ failed. Complete output: > library(testthat) > test_check("grainscape") Loading required package: grainscape Writing layer `nodes' to data source `/home/hornik/tmp/scratch/RtmpZ7ldJP/tiny_goc_thresh2' using driver `ESRI Shapefile' Writing 28 features with 5 fields and geometry type Point. Writing layer `linksCentroid' to data source `/home/hornik/tmp/scratch/RtmpZ7ldJP/tiny_goc_thresh2' using driver `ESRI Shapefile' Writing 59 features with 15 fields and geometry type Line String. Writing layer `nodes' to data source `/home/hornik/tmp/scratch/RtmpZ7ldJP/tiny_mpg' using driver `ESRI Shapefile' Writing 43 features with 4 fields and geometry type Point. Writing layer `linksCentroid' to data source `/home/hornik/tmp/scratch/RtmpZ7ldJP/tiny_mpg' using driver `ESRI Shapefile' Writing 93 features with 12 fields and geometry type Line String. Writing layer `linksPerim' to data source `/home/hornik/tmp/scratch/RtmpZ7ldJP/tiny_mpg' using driver `ESRI Shapefile' Writing 93 features with 8 fields and geometry type Line String. IGRAPH d0899a4 UN-- 43 89 -- + attr: name (v/c), patchId (v/n), patchArea (v/n), patchEdgeArea | (v/n), coreArea (v/n), centroidX (v/n), centroidY (v/n), linkId | (e/n), lcpPerimWeight (e/n), startPerimX (e/n), startPerimY (e/n), | endPerimX (e/n), endPerimY (e/n) + edges from d0899a4 (vertex names): [1] 62 --74 30 --41 30 --40 7 --22 5 --7 80 --86 73 --78 29 --31 [9] 19 --29 67 --85 41 --48 40 --41 37 --41 8 --28 9 --12 12 --14 [17] 30 --48 8 --9 48 --54 95 --103 62 --64 5 --22 32 --37 74 --84 [25] 55 --56 5 --32 9 --28 68 --80 14 --19 30 --54 5 --37 54 --55 [33] 64 --74 86 --100 100--107 41 --50 56 --76 56 --61 103--105 9 --14 + ... omitted several edges [ FAIL 1 | WARN 2 | SKIP 0 | PASS 81 ] ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error ('test-corridor-distance-point.R:31:3'): corridor handles NA values ─── Error in `shortest_paths(x@th[[whichThresh]]$goc, which(V(x@th[[whichThresh]]$goc)$polygonId == na.omit(startEndPolygons[1])), which(V(x@th[[whichThresh]]$goc)$polygonId == na.omit(startEndPolygons[2])), weights = V(x@th[[whichThresh]]$goc)$meanWeight)`: At rinterface_extra.c:138 : Wrong index. Attempt to get element with index 0 from vector of length 0. Invalid value Backtrace: ▆ 1. ├─testthat::expect_warning(...) at test-corridor-distance-point.R:31:3 2. │ └─testthat:::quasi_capture(...) 3. │ ├─testthat (local) .capture(...) 4. │ │ └─base::withCallingHandlers(...) 5. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 6. ├─grainscape::corridor(goc, whichThresh = 2, coordSomeNA) 7. └─grainscape::corridor(goc, whichThresh = 2, coordSomeNA) 8. └─grainscape (local) .local(x, ...) 9. └─igraph::shortest_paths(...) [ FAIL 1 | WARN 2 | SKIP 0 | PASS 81 ] Error: Test failures Execution halted Flavor: r-devel-linux-x86_64-debian-clang

Version: 0.4.4
Check: tests
Result: ERROR Running ‘test-all.R’ [33s/38s] Running the tests in ‘tests/test-all.R’ failed. Complete output: > library(testthat) > test_check("grainscape") Loading required package: grainscape Writing layer `nodes' to data source `/tmp/RtmpZZQsLC/tiny_goc_thresh2' using driver `ESRI Shapefile' Writing 28 features with 5 fields and geometry type Point. Writing layer `linksCentroid' to data source `/tmp/RtmpZZQsLC/tiny_goc_thresh2' using driver `ESRI Shapefile' Writing 59 features with 15 fields and geometry type Line String. Writing layer `nodes' to data source `/tmp/RtmpZZQsLC/tiny_mpg' using driver `ESRI Shapefile' Writing 43 features with 4 fields and geometry type Point. Writing layer `linksCentroid' to data source `/tmp/RtmpZZQsLC/tiny_mpg' using driver `ESRI Shapefile' Writing 93 features with 12 fields and geometry type Line String. Writing layer `linksPerim' to data source `/tmp/RtmpZZQsLC/tiny_mpg' using driver `ESRI Shapefile' Writing 93 features with 8 fields and geometry type Line String. IGRAPH 3b69d8a UN-- 43 89 -- + attr: name (v/c), patchId (v/n), patchArea (v/n), patchEdgeArea | (v/n), coreArea (v/n), centroidX (v/n), centroidY (v/n), linkId | (e/n), lcpPerimWeight (e/n), startPerimX (e/n), startPerimY (e/n), | endPerimX (e/n), endPerimY (e/n) + edges from 3b69d8a (vertex names): [1] 62 --74 30 --41 30 --40 7 --22 5 --7 80 --86 73 --78 29 --31 [9] 19 --29 67 --85 41 --48 40 --41 37 --41 8 --28 9 --12 12 --14 [17] 30 --48 8 --9 48 --54 95 --103 62 --64 5 --22 32 --37 74 --84 [25] 55 --56 5 --32 9 --28 68 --80 14 --19 30 --54 5 --37 54 --55 [33] 64 --74 86 --100 100--107 41 --50 56 --76 56 --61 103--105 9 --14 + ... omitted several edges [ FAIL 1 | WARN 2 | SKIP 0 | PASS 81 ] ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error ('test-corridor-distance-point.R:31:3'): corridor handles NA values ─── Error in `shortest_paths(x@th[[whichThresh]]$goc, which(V(x@th[[whichThresh]]$goc)$polygonId == na.omit(startEndPolygons[1])), which(V(x@th[[whichThresh]]$goc)$polygonId == na.omit(startEndPolygons[2])), weights = V(x@th[[whichThresh]]$goc)$meanWeight)`: At rinterface_extra.c:138 : Wrong index. Attempt to get element with index 0 from vector of length 0. Invalid value Backtrace: ▆ 1. ├─testthat::expect_warning(...) at test-corridor-distance-point.R:31:3 2. │ └─testthat:::quasi_capture(...) 3. │ ├─testthat (local) .capture(...) 4. │ │ └─base::withCallingHandlers(...) 5. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 6. ├─grainscape::corridor(goc, whichThresh = 2, coordSomeNA) 7. └─grainscape::corridor(goc, whichThresh = 2, coordSomeNA) 8. └─grainscape (local) .local(x, ...) 9. └─igraph::shortest_paths(...) [ FAIL 1 | WARN 2 | SKIP 0 | PASS 81 ] Error: Test failures Execution halted Flavor: r-devel-linux-x86_64-debian-gcc

Version: 0.4.4
Check: tests
Result: ERROR Running ‘test-all.R’ [97s/125s] Running the tests in ‘tests/test-all.R’ failed. Complete output: > library(testthat) > test_check("grainscape") Loading required package: grainscape Writing layer `nodes' to data source `/tmp/RtmpB6fCdY/working_dir/Rtmp7LSng6/tiny_goc_thresh2' using driver `ESRI Shapefile' Writing 28 features with 5 fields and geometry type Point. Writing layer `linksCentroid' to data source `/tmp/RtmpB6fCdY/working_dir/Rtmp7LSng6/tiny_goc_thresh2' using driver `ESRI Shapefile' Writing 59 features with 15 fields and geometry type Line String. Writing layer `nodes' to data source `/tmp/RtmpB6fCdY/working_dir/Rtmp7LSng6/tiny_mpg' using driver `ESRI Shapefile' Writing 43 features with 4 fields and geometry type Point. Writing layer `linksCentroid' to data source `/tmp/RtmpB6fCdY/working_dir/Rtmp7LSng6/tiny_mpg' using driver `ESRI Shapefile' Writing 93 features with 12 fields and geometry type Line String. Writing layer `linksPerim' to data source `/tmp/RtmpB6fCdY/working_dir/Rtmp7LSng6/tiny_mpg' using driver `ESRI Shapefile' Writing 93 features with 8 fields and geometry type Line String. IGRAPH cf78214 UN-- 43 89 -- + attr: name (v/c), patchId (v/n), patchArea (v/n), patchEdgeArea | (v/n), coreArea (v/n), centroidX (v/n), centroidY (v/n), linkId | (e/n), lcpPerimWeight (e/n), startPerimX (e/n), startPerimY (e/n), | endPerimX (e/n), endPerimY (e/n) + edges from cf78214 (vertex names): [1] 62 --74 30 --41 30 --40 7 --22 5 --7 80 --86 73 --78 29 --31 [9] 19 --29 67 --85 41 --48 40 --41 37 --41 8 --28 9 --12 12 --14 [17] 30 --48 8 --9 48 --54 95 --103 62 --64 5 --22 32 --37 74 --84 [25] 55 --56 5 --32 9 --28 68 --80 14 --19 30 --54 5 --37 54 --55 [33] 64 --74 86 --100 100--107 41 --50 56 --76 56 --61 103--105 9 --14 + ... omitted several edges [ FAIL 1 | WARN 2 | SKIP 0 | PASS 81 ] ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error ('test-corridor-distance-point.R:31:3'): corridor handles NA values ─── Error in `shortest_paths(x@th[[whichThresh]]$goc, which(V(x@th[[whichThresh]]$goc)$polygonId == na.omit(startEndPolygons[1])), which(V(x@th[[whichThresh]]$goc)$polygonId == na.omit(startEndPolygons[2])), weights = V(x@th[[whichThresh]]$goc)$meanWeight)`: At rinterface_extra.c:138 : Wrong index. Attempt to get element with index 0 from vector of length 0. Invalid value Backtrace: ▆ 1. ├─testthat::expect_warning(...) at test-corridor-distance-point.R:31:3 2. │ └─testthat:::quasi_capture(...) 3. │ ├─testthat (local) .capture(...) 4. │ │ └─base::withCallingHandlers(...) 5. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 6. ├─grainscape::corridor(goc, whichThresh = 2, coordSomeNA) 7. └─grainscape::corridor(goc, whichThresh = 2, coordSomeNA) 8. └─grainscape (local) .local(x, ...) 9. └─igraph::shortest_paths(...) [ FAIL 1 | WARN 2 | SKIP 0 | PASS 81 ] Error: Test failures Execution halted Flavor: r-devel-linux-x86_64-fedora-clang

Version: 0.4.4
Check: tests
Result: ERROR Running ‘test-all.R’ [49s/49s] Running the tests in ‘tests/test-all.R’ failed. Complete output: > library(testthat) > test_check("grainscape") Loading required package: grainscape Writing layer `nodes' to data source `/tmp/Rtmp9BWJDe/working_dir/RtmpfxqEsV/tiny_goc_thresh2' using driver `ESRI Shapefile' Writing 28 features with 5 fields and geometry type Point. Writing layer `linksCentroid' to data source `/tmp/Rtmp9BWJDe/working_dir/RtmpfxqEsV/tiny_goc_thresh2' using driver `ESRI Shapefile' Writing 59 features with 15 fields and geometry type Line String. Writing layer `nodes' to data source `/tmp/Rtmp9BWJDe/working_dir/RtmpfxqEsV/tiny_mpg' using driver `ESRI Shapefile' Writing 43 features with 4 fields and geometry type Point. Writing layer `linksCentroid' to data source `/tmp/Rtmp9BWJDe/working_dir/RtmpfxqEsV/tiny_mpg' using driver `ESRI Shapefile' Writing 93 features with 12 fields and geometry type Line String. Writing layer `linksPerim' to data source `/tmp/Rtmp9BWJDe/working_dir/RtmpfxqEsV/tiny_mpg' using driver `ESRI Shapefile' Writing 93 features with 8 fields and geometry type Line String. IGRAPH f49cb9a UN-- 43 89 -- + attr: name (v/c), patchId (v/n), patchArea (v/n), patchEdgeArea | (v/n), coreArea (v/n), centroidX (v/n), centroidY (v/n), linkId | (e/n), lcpPerimWeight (e/n), startPerimX (e/n), startPerimY (e/n), | endPerimX (e/n), endPerimY (e/n) + edges from f49cb9a (vertex names): [1] 62 --74 30 --41 30 --40 7 --22 5 --7 80 --86 73 --78 29 --31 [9] 19 --29 67 --85 41 --48 40 --41 37 --41 8 --28 9 --12 12 --14 [17] 30 --48 8 --9 48 --54 95 --103 62 --64 5 --22 32 --37 74 --84 [25] 55 --56 5 --32 9 --28 68 --80 14 --19 30 --54 5 --37 54 --55 [33] 64 --74 86 --100 100--107 41 --50 56 --76 56 --61 103--105 9 --14 + ... omitted several edges [ FAIL 1 | WARN 2 | SKIP 0 | PASS 81 ] ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error ('test-corridor-distance-point.R:31:3'): corridor handles NA values ─── Error in `shortest_paths(x@th[[whichThresh]]$goc, which(V(x@th[[whichThresh]]$goc)$polygonId == na.omit(startEndPolygons[1])), which(V(x@th[[whichThresh]]$goc)$polygonId == na.omit(startEndPolygons[2])), weights = V(x@th[[whichThresh]]$goc)$meanWeight)`: At rinterface_extra.c:138 : Wrong index. Attempt to get element with index 0 from vector of length 0. Invalid value Backtrace: ▆ 1. ├─testthat::expect_warning(...) at test-corridor-distance-point.R:31:3 2. │ └─testthat:::quasi_capture(...) 3. │ ├─testthat (local) .capture(...) 4. │ │ └─base::withCallingHandlers(...) 5. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 6. ├─grainscape::corridor(goc, whichThresh = 2, coordSomeNA) 7. └─grainscape::corridor(goc, whichThresh = 2, coordSomeNA) 8. └─grainscape (local) .local(x, ...) 9. └─igraph::shortest_paths(...) [ FAIL 1 | WARN 2 | SKIP 0 | PASS 81 ] Error: Test failures Execution halted Flavor: r-devel-linux-x86_64-fedora-gcc

Version: 0.4.4
Check: tests
Result: ERROR Running 'test-all.R' [45s] Running the tests in 'tests/test-all.R' failed. Complete output: > library(testthat) > test_check("grainscape") Loading required package: grainscape Writing layer `nodes' to data source `D:\temp\2025_01_13_01_50_00_7580\Rtmpoxhett\tiny_goc_thresh2' using driver `ESRI Shapefile' Writing 28 features with 5 fields and geometry type Point. Writing layer `linksCentroid' to data source `D:\temp\2025_01_13_01_50_00_7580\Rtmpoxhett\tiny_goc_thresh2' using driver `ESRI Shapefile' Writing 59 features with 15 fields and geometry type Line String. Writing layer `nodes' to data source `D:\temp\2025_01_13_01_50_00_7580\Rtmpoxhett\tiny_mpg' using driver `ESRI Shapefile' Writing 43 features with 4 fields and geometry type Point. Writing layer `linksCentroid' to data source `D:\temp\2025_01_13_01_50_00_7580\Rtmpoxhett\tiny_mpg' using driver `ESRI Shapefile' Writing 93 features with 12 fields and geometry type Line String. Writing layer `linksPerim' to data source `D:\temp\2025_01_13_01_50_00_7580\Rtmpoxhett\tiny_mpg' using driver `ESRI Shapefile' Writing 93 features with 8 fields and geometry type Line String. IGRAPH f770457 UN-- 43 89 -- + attr: name (v/c), patchId (v/n), patchArea (v/n), patchEdgeArea | (v/n), coreArea (v/n), centroidX (v/n), centroidY (v/n), linkId | (e/n), lcpPerimWeight (e/n), startPerimX (e/n), startPerimY (e/n), | endPerimX (e/n), endPerimY (e/n) + edges from f770457 (vertex names): [1] 62 --74 30 --41 30 --40 7 --22 5 --7 80 --86 73 --78 29 --31 [9] 19 --29 67 --85 41 --48 40 --41 37 --41 8 --28 9 --12 12 --14 [17] 30 --48 8 --9 48 --54 95 --103 62 --64 5 --22 32 --37 74 --84 [25] 55 --56 5 --32 9 --28 68 --80 14 --19 30 --54 5 --37 54 --55 [33] 64 --74 86 --100 100--107 41 --50 56 --76 56 --61 103--105 9 --14 + ... omitted several edges [ FAIL 1 | WARN 2 | SKIP 0 | PASS 81 ] ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error ('test-corridor-distance-point.R:31:3'): corridor handles NA values ─── Error in `shortest_paths(x@th[[whichThresh]]$goc, which(V(x@th[[whichThresh]]$goc)$polygonId == na.omit(startEndPolygons[1])), which(V(x@th[[whichThresh]]$goc)$polygonId == na.omit(startEndPolygons[2])), weights = V(x@th[[whichThresh]]$goc)$meanWeight)`: At rinterface_extra.c:138 : Wrong index. Attempt to get element with index 0 from vector of length 0. Invalid value Backtrace: ▆ 1. ├─testthat::expect_warning(...) at test-corridor-distance-point.R:31:3 2. │ └─testthat:::quasi_capture(...) 3. │ ├─testthat (local) .capture(...) 4. │ │ └─base::withCallingHandlers(...) 5. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 6. ├─grainscape::corridor(goc, whichThresh = 2, coordSomeNA) 7. └─grainscape::corridor(goc, whichThresh = 2, coordSomeNA) 8. └─grainscape (local) .local(x, ...) 9. └─igraph::shortest_paths(...) [ FAIL 1 | WARN 2 | SKIP 0 | PASS 81 ] Error: Test failures Execution halted Flavor: r-devel-windows-x86_64

Version: 0.4.4
Check: tests
Result: ERROR Running ‘test-all.R’ [55s/63s] Running the tests in ‘tests/test-all.R’ failed. Complete output: > library(testthat) > test_check("grainscape") Loading required package: grainscape Writing layer `nodes' to data source `/home/hornik/tmp/scratch/RtmpkVb8rv/tiny_goc_thresh2' using driver `ESRI Shapefile' Writing 28 features with 5 fields and geometry type Point. Writing layer `linksCentroid' to data source `/home/hornik/tmp/scratch/RtmpkVb8rv/tiny_goc_thresh2' using driver `ESRI Shapefile' Writing 59 features with 15 fields and geometry type Line String. Writing layer `nodes' to data source `/home/hornik/tmp/scratch/RtmpkVb8rv/tiny_mpg' using driver `ESRI Shapefile' Writing 43 features with 4 fields and geometry type Point. Writing layer `linksCentroid' to data source `/home/hornik/tmp/scratch/RtmpkVb8rv/tiny_mpg' using driver `ESRI Shapefile' Writing 93 features with 12 fields and geometry type Line String. Writing layer `linksPerim' to data source `/home/hornik/tmp/scratch/RtmpkVb8rv/tiny_mpg' using driver `ESRI Shapefile' Writing 93 features with 8 fields and geometry type Line String. IGRAPH 241c10c UN-- 43 89 -- + attr: name (v/c), patchId (v/n), patchArea (v/n), patchEdgeArea | (v/n), coreArea (v/n), centroidX (v/n), centroidY (v/n), linkId | (e/n), lcpPerimWeight (e/n), startPerimX (e/n), startPerimY (e/n), | endPerimX (e/n), endPerimY (e/n) + edges from 241c10c (vertex names): [1] 62 --74 30 --41 30 --40 7 --22 5 --7 80 --86 73 --78 29 --31 [9] 19 --29 67 --85 41 --48 40 --41 37 --41 8 --28 9 --12 12 --14 [17] 30 --48 8 --9 48 --54 95 --103 62 --64 5 --22 32 --37 74 --84 [25] 55 --56 5 --32 9 --28 68 --80 14 --19 30 --54 5 --37 54 --55 [33] 64 --74 86 --100 100--107 41 --50 56 --76 56 --61 103--105 9 --14 + ... omitted several edges [ FAIL 1 | WARN 2 | SKIP 0 | PASS 81 ] ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error ('test-corridor-distance-point.R:31:3'): corridor handles NA values ─── Error in `shortest_paths(x@th[[whichThresh]]$goc, which(V(x@th[[whichThresh]]$goc)$polygonId == na.omit(startEndPolygons[1])), which(V(x@th[[whichThresh]]$goc)$polygonId == na.omit(startEndPolygons[2])), weights = V(x@th[[whichThresh]]$goc)$meanWeight)`: At rinterface_extra.c:138 : Wrong index. Attempt to get element with index 0 from vector of length 0. Invalid value Backtrace: ▆ 1. ├─testthat::expect_warning(...) at test-corridor-distance-point.R:31:3 2. │ └─testthat:::quasi_capture(...) 3. │ ├─testthat (local) .capture(...) 4. │ │ └─base::withCallingHandlers(...) 5. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 6. ├─grainscape::corridor(goc, whichThresh = 2, coordSomeNA) 7. └─grainscape::corridor(goc, whichThresh = 2, coordSomeNA) 8. └─grainscape (local) .local(x, ...) 9. └─igraph::shortest_paths(...) [ FAIL 1 | WARN 2 | SKIP 0 | PASS 81 ] Error: Test failures Execution halted Flavor: r-release-linux-x86_64

Version: 0.4.4
Check: tests
Result: ERROR Running 'test-all.R' [48s] Running the tests in 'tests/test-all.R' failed. Complete output: > library(testthat) > test_check("grainscape") Loading required package: grainscape Writing layer `nodes' to data source `D:\temp\2025_01_11_01_50_00_344\RtmpANURla\tiny_goc_thresh2' using driver `ESRI Shapefile' Writing 28 features with 5 fields and geometry type Point. Writing layer `linksCentroid' to data source `D:\temp\2025_01_11_01_50_00_344\RtmpANURla\tiny_goc_thresh2' using driver `ESRI Shapefile' Writing 59 features with 15 fields and geometry type Line String. Writing layer `nodes' to data source `D:\temp\2025_01_11_01_50_00_344\RtmpANURla\tiny_mpg' using driver `ESRI Shapefile' Writing 43 features with 4 fields and geometry type Point. Writing layer `linksCentroid' to data source `D:\temp\2025_01_11_01_50_00_344\RtmpANURla\tiny_mpg' using driver `ESRI Shapefile' Writing 93 features with 12 fields and geometry type Line String. Writing layer `linksPerim' to data source `D:\temp\2025_01_11_01_50_00_344\RtmpANURla\tiny_mpg' using driver `ESRI Shapefile' Writing 93 features with 8 fields and geometry type Line String. IGRAPH a47f760 UN-- 43 89 -- + attr: name (v/c), patchId (v/n), patchArea (v/n), patchEdgeArea | (v/n), coreArea (v/n), centroidX (v/n), centroidY (v/n), linkId | (e/n), lcpPerimWeight (e/n), startPerimX (e/n), startPerimY (e/n), | endPerimX (e/n), endPerimY (e/n) + edges from a47f760 (vertex names): [1] 62 --74 30 --41 30 --40 7 --22 5 --7 80 --86 73 --78 29 --31 [9] 19 --29 67 --85 41 --48 40 --41 37 --41 8 --28 9 --12 12 --14 [17] 30 --48 8 --9 48 --54 95 --103 62 --64 5 --22 32 --37 74 --84 [25] 55 --56 5 --32 9 --28 68 --80 14 --19 30 --54 5 --37 54 --55 [33] 64 --74 86 --100 100--107 41 --50 56 --76 56 --61 103--105 9 --14 + ... omitted several edges [ FAIL 1 | WARN 2 | SKIP 0 | PASS 81 ] ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error ('test-corridor-distance-point.R:31:3'): corridor handles NA values ─── Error in `shortest_paths(x@th[[whichThresh]]$goc, which(V(x@th[[whichThresh]]$goc)$polygonId == na.omit(startEndPolygons[1])), which(V(x@th[[whichThresh]]$goc)$polygonId == na.omit(startEndPolygons[2])), weights = V(x@th[[whichThresh]]$goc)$meanWeight)`: At rinterface_extra.c:138 : Wrong index. Attempt to get element with index 0 from vector of length 0. Invalid value Backtrace: ▆ 1. ├─testthat::expect_warning(...) at test-corridor-distance-point.R:31:3 2. │ └─testthat:::quasi_capture(...) 3. │ ├─testthat (local) .capture(...) 4. │ │ └─base::withCallingHandlers(...) 5. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 6. ├─grainscape::corridor(goc, whichThresh = 2, coordSomeNA) 7. └─grainscape::corridor(goc, whichThresh = 2, coordSomeNA) 8. └─grainscape (local) .local(x, ...) 9. └─igraph::shortest_paths(...) [ FAIL 1 | WARN 2 | SKIP 0 | PASS 81 ] Error: Test failures Execution halted Flavor: r-release-windows-x86_64

Version: 0.4.4
Check: tests
Result: ERROR Running 'test-all.R' [63s] Running the tests in 'tests/test-all.R' failed. Complete output: > library(testthat) > test_check("grainscape") Loading required package: grainscape Writing layer `nodes' to data source `D:\temp\2025_01_11_01_50_00_344\RtmpWKHgv8\tiny_goc_thresh2' using driver `ESRI Shapefile' Writing 28 features with 5 fields and geometry type Point. Writing layer `linksCentroid' to data source `D:\temp\2025_01_11_01_50_00_344\RtmpWKHgv8\tiny_goc_thresh2' using driver `ESRI Shapefile' Writing 59 features with 15 fields and geometry type Line String. Writing layer `nodes' to data source `D:\temp\2025_01_11_01_50_00_344\RtmpWKHgv8\tiny_mpg' using driver `ESRI Shapefile' Writing 43 features with 4 fields and geometry type Point. Writing layer `linksCentroid' to data source `D:\temp\2025_01_11_01_50_00_344\RtmpWKHgv8\tiny_mpg' using driver `ESRI Shapefile' Writing 93 features with 12 fields and geometry type Line String. Writing layer `linksPerim' to data source `D:\temp\2025_01_11_01_50_00_344\RtmpWKHgv8\tiny_mpg' using driver `ESRI Shapefile' Writing 93 features with 8 fields and geometry type Line String. IGRAPH 9f8cc92 UN-- 43 89 -- + attr: name (v/c), patchId (v/n), patchArea (v/n), patchEdgeArea | (v/n), coreArea (v/n), centroidX (v/n), centroidY (v/n), linkId | (e/n), lcpPerimWeight (e/n), startPerimX (e/n), startPerimY (e/n), | endPerimX (e/n), endPerimY (e/n) + edges from 9f8cc92 (vertex names): [1] 62 --74 30 --41 30 --40 7 --22 5 --7 80 --86 73 --78 29 --31 [9] 19 --29 67 --85 41 --48 40 --41 37 --41 8 --28 9 --12 12 --14 [17] 30 --48 8 --9 48 --54 95 --103 62 --64 5 --22 32 --37 74 --84 [25] 55 --56 5 --32 9 --28 68 --80 14 --19 30 --54 5 --37 54 --55 [33] 64 --74 86 --100 100--107 41 --50 56 --76 56 --61 103--105 9 --14 + ... omitted several edges [ FAIL 1 | WARN 2 | SKIP 0 | PASS 81 ] ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error ('test-corridor-distance-point.R:31:3'): corridor handles NA values ─── Error in `shortest_paths(x@th[[whichThresh]]$goc, which(V(x@th[[whichThresh]]$goc)$polygonId == na.omit(startEndPolygons[1])), which(V(x@th[[whichThresh]]$goc)$polygonId == na.omit(startEndPolygons[2])), weights = V(x@th[[whichThresh]]$goc)$meanWeight)`: At rinterface_extra.c:138 : Wrong index. Attempt to get element with index 0 from vector of length 0. Invalid value Backtrace: ▆ 1. ├─testthat::expect_warning(...) at test-corridor-distance-point.R:31:3 2. │ └─testthat:::quasi_capture(...) 3. │ ├─testthat (local) .capture(...) 4. │ │ └─base::withCallingHandlers(...) 5. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 6. ├─grainscape::corridor(goc, whichThresh = 2, coordSomeNA) 7. └─grainscape::corridor(goc, whichThresh = 2, coordSomeNA) 8. └─grainscape (local) .local(x, ...) 9. └─igraph::shortest_paths(...) [ FAIL 1 | WARN 2 | SKIP 0 | PASS 81 ] Error: Test failures Execution halted Flavor: r-oldrel-windows-x86_64