* using log directory 'd:/Rcompile/CRANpkg/local/4.4/grainscape.Rcheck' * using R version 4.4.2 (2024-10-31 ucrt) * using platform: x86_64-w64-mingw32 * R was compiled by gcc.exe (GCC) 13.3.0 GNU Fortran (GCC) 13.3.0 * running under: Windows Server 2022 x64 (build 20348) * using session charset: UTF-8 * checking for file 'grainscape/DESCRIPTION' ... OK * checking extension type ... Package * this is package 'grainscape' version '0.4.4' * 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 hidden files and directories ... OK * checking for portable file names ... OK * checking whether package 'grainscape' can be installed ... OK * used C compiler: 'gcc.exe (GCC) 13.3.0' * used C++ compiler: 'g++.exe (GCC) 13.3.0' * 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 code files for non-ASCII characters ... OK * checking R files for syntax errors ... OK * checking whether the package can be loaded ... [8s] OK * checking whether the package can be loaded with stated dependencies ... [8s] OK * checking whether the package can be unloaded cleanly ... [8s] OK * checking whether the namespace can be loaded with stated dependencies ... [8s] OK * checking whether the namespace can be unloaded cleanly ... [8s] OK * checking loading without being on the library search path ... [7s] OK * checking whether startup messages can be suppressed ... [8s] 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 ... [19s] OK * checking Rd files ... [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 line endings in C/C++/Fortran sources/headers ... OK * checking pragmas in C/C++ headers and code ... OK * checking compiled code ... OK * checking sizes of PDF files under 'inst/doc' ... OK * checking installed files from 'inst/doc' ... OK * checking files in 'vignettes' ... OK * checking examples ... [25s] OK * checking for unstated dependencies in 'tests' ... OK * checking tests ... [48s] 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 * checking for unstated dependencies in vignettes ... OK * checking package vignettes ... OK * checking re-building of vignette outputs ... [194s] OK * checking PDF version of manual ... [21s] OK * checking HTML version of manual ... [6s] OK * DONE Status: 1 ERROR