* using log directory 'd:/Rcompile/CRANpkg/local/4.4/roads.Rcheck' * using R version 4.4.3 (2025-02-28 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 'roads/DESCRIPTION' ... OK * this is package 'roads' version '1.2.0' * 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 'roads' can be installed ... OK * 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 ... [10s] OK * checking whether the package can be loaded with stated dependencies ... [9s] OK * checking whether the package can be unloaded cleanly ... [8s] OK * checking whether the namespace can be loaded with stated dependencies ... [9s] OK * checking whether the namespace can be unloaded cleanly ... [9s] OK * checking loading without being on the library search path ... [10s] 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 ... [22s] 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 contents of 'data' directory ... OK * checking data for non-ASCII characters ... [8s] OK * checking LazyData ... OK * checking data for ASCII and uncompressed saves ... OK * checking installed files from 'inst/doc' ... OK * checking files in 'vignettes' ... OK * checking examples ... [10s] ERROR Running examples in 'roads-Ex.R' failed The error most likely occurred in: > ### Name: CLUSexample > ### Title: Data from the CLUS example > ### Aliases: CLUSexample > ### Keywords: datasets > > ### ** Examples > > CLUSexample $cost [1] "This is a PackedSpatRaster object. Use 'terra::unwrap()' to unpack it" $landings Simple feature collection with 4 features and 0 fields Geometry type: POINT Dimension: XY Bounding box: xmin: 0.5 ymin: 0.5 xmax: 4.5 ymax: 2.5 Projected CRS: NAD83 / Statistics Canada Lambert geometry 1 POINT (0.5 2.5) 2 POINT (2.5 2.5) 3 POINT (1.5 0.5) 4 POINT (4.5 0.5) $roads [1] "This is a PackedSpatRaster object. Use 'terra::unwrap()' to unpack it" > prepExData(CLUSexample) Warning: PROJ: proj_create_from_database: Cannot find proj.db (GDAL error 1) Error: [rast] empty srs Execution halted * checking for unstated dependencies in 'tests' ... OK * checking tests ... [11s] ERROR Running 'testthat.R' [11s] Running the tests in 'tests/testthat.R' failed. Complete output: > library(testthat) > library(roads) > > test_check("roads") Saving _problems/test-errors-messages-1.R Saving _problems/test-getGraph-3.R Saving _problems/test-getLandingsFromTarget-2.R Saving _problems/test-projectRoads-17.R Saving _problems/test-projectRoads_CLUSexample-22.R Saving _problems/test-rasterToLineSegments-2.R [ FAIL 6 | WARN 6 | SKIP 0 | PASS 3 ] ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error ('test-errors-messages.R:1:1'): (code run outside of `test_that()`) ─── Error: [rast] empty srs Backtrace: ▆ 1. └─roads::prepExData(CLUSexample) at test-errors-messages.R:1:1 2. └─base::rapply(...) 3. ├─terra (local) ``(X, ...) 4. └─terra (local) ``(X, ...) 5. └─terra (local) .local(x, ...) 6. ├─base::eval(parse(text = x@definition)) 7. │ └─base::eval(parse(text = x@definition)) 8. ├─terra::rast(...) 9. └─terra::rast(...) 10. └─terra (local) .local(x = x, ...) 11. └─terra:::new_rast(...) 12. └─terra:::messages(r, "rast") 13. └─terra:::error(f, x@pntr$getError()) ── Error ('test-getGraph.R:3:1'): (code run outside of `test_that()`) ────────── Error: [rast] empty srs Backtrace: ▆ 1. └─roads::prepExData(CLUSexample) at test-getGraph.R:3:1 2. └─base::rapply(...) 3. ├─terra (local) ``(X, ...) 4. └─terra (local) ``(X, ...) 5. └─terra (local) .local(x, ...) 6. ├─base::eval(parse(text = x@definition)) 7. │ └─base::eval(parse(text = x@definition)) 8. ├─terra::rast(...) 9. └─terra::rast(...) 10. └─terra (local) .local(x = x, ...) 11. └─terra:::new_rast(...) 12. └─terra:::messages(r, "rast") 13. └─terra:::error(f, x@pntr$getError()) ── Error ('test-getLandingsFromTarget.R:2:1'): (code run outside of `test_that()`) ── Error: [rast] empty srs Backtrace: ▆ 1. └─roads::prepExData(demoScen) at test-getLandingsFromTarget.R:2:1 2. └─base::rapply(...) 3. ├─terra (local) ``(X, ...) 4. └─terra (local) ``(X, ...) 5. └─terra (local) .local(x, ...) 6. ├─base::eval(parse(text = x@definition)) 7. │ └─base::eval(parse(text = x@definition)) 8. ├─terra::rast(...) 9. └─terra::rast(...) 10. └─terra (local) .local(x = x, ...) 11. └─terra:::new_rast(...) 12. └─terra:::messages(r, "rast") 13. └─terra:::error(f, x@pntr$getError()) ── Error ('test-projectRoads.R:17:1'): (code run outside of `test_that()`) ───── Error: [rast] empty srs Backtrace: ▆ 1. └─roads::prepExData(demoScen) at test-projectRoads.R:17:1 2. └─base::rapply(...) 3. ├─terra (local) ``(X, ...) 4. └─terra (local) ``(X, ...) 5. └─terra (local) .local(x, ...) 6. ├─base::eval(parse(text = x@definition)) 7. │ └─base::eval(parse(text = x@definition)) 8. ├─terra::rast(...) 9. └─terra::rast(...) 10. └─terra (local) .local(x = x, ...) 11. └─terra:::new_rast(...) 12. └─terra:::messages(r, "rast") 13. └─terra:::error(f, x@pntr$getError()) ── Error ('test-projectRoads_CLUSexample.R:22:1'): (code run outside of `test_that()`) ── Error: [rast] empty srs Backtrace: ▆ 1. └─roads::prepExData(CLUSexample) at test-projectRoads_CLUSexample.R:22:1 2. └─base::rapply(...) 3. ├─terra (local) ``(X, ...) 4. └─terra (local) ``(X, ...) 5. └─terra (local) .local(x, ...) 6. ├─base::eval(parse(text = x@definition)) 7. │ └─base::eval(parse(text = x@definition)) 8. ├─terra::rast(...) 9. └─terra::rast(...) 10. └─terra (local) .local(x = x, ...) 11. └─terra:::new_rast(...) 12. └─terra:::messages(r, "rast") 13. └─terra:::error(f, x@pntr$getError()) ── Error ('test-rasterToLineSegments.R:2:3'): inspect line segments ──────────── Error: [rast] empty srs Backtrace: ▆ 1. └─roads::prepExData(demoScen) at test-rasterToLineSegments.R:2:3 2. └─base::rapply(...) 3. ├─terra (local) ``(X, ...) 4. └─terra (local) ``(X, ...) 5. └─terra (local) .local(x, ...) 6. ├─base::eval(parse(text = x@definition)) 7. │ └─base::eval(parse(text = x@definition)) 8. ├─terra::rast(...) 9. └─terra::rast(...) 10. └─terra (local) .local(x = x, ...) 11. └─terra:::new_rast(...) 12. └─terra:::messages(r, "rast") 13. └─terra:::error(f, x@pntr$getError()) [ FAIL 6 | WARN 6 | SKIP 0 | PASS 3 ] Error: ! Test failures. Execution halted * checking for unstated dependencies in vignettes ... OK * checking package vignettes ... OK * checking re-building of vignette outputs ... [33s] ERROR Error(s) in re-building vignettes: --- re-building 'ReconstructRoadHistory.Rmd' using rmarkdown Quitting from ReconstructRoadHistory.Rmd:19-38 [setup] ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Error: ! [rast] empty srs --- Backtrace: ▆ 1. └─roads::prepExData(demoScen) 2. └─base::rapply(...) 3. ├─terra (local) ``(X, ...) 4. └─terra (local) ``(X, ...) 5. └─terra (local) .local(x, ...) 6. ├─base::eval(parse(text = x@definition)) 7. │ └─base::eval(parse(text = x@definition)) 8. ├─terra::rast(...) 9. └─terra::rast(...) 10. └─terra (local) .local(x = x, ...) 11. └─terra:::new_rast(...) 12. └─terra:::messages(r, "rast") 13. └─terra:::error(f, x@pntr$getError()) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Error: processing vignette 'ReconstructRoadHistory.Rmd' failed with diagnostics: [rast] empty srs --- failed re-building 'ReconstructRoadHistory.Rmd' --- re-building 'grade-penalty.Rmd' using rmarkdown Quitting from grade-penalty.Rmd:25-33 [setup] ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Error: ! [rast] empty srs --- Backtrace: ▆ 1. └─roads::prepExData(dem_example) 2. └─base::rapply(...) 3. ├─terra (local) ``(X, ...) 4. └─terra (local) ``(X, ...) 5. └─terra (local) .local(x, ...) 6. ├─base::eval(parse(text = x@definition)) 7. │ └─base::eval(parse(text = x@definition)) 8. ├─terra::rast(...) 9. └─terra::rast(...) 10. └─terra (local) .local(x = x, ...) 11. └─terra:::new_rast(...) 12. └─terra:::messages(r, "rast") 13. └─terra:::error(f, x@pntr$getError()) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Error: processing vignette 'grade-penalty.Rmd' failed with diagnostics: [rast] empty srs --- failed re-building 'grade-penalty.Rmd' --- re-building 'roads-vignette.Rmd' using rmarkdown Quitting from roads-vignette.Rmd:45-61 [setup] ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Error: ! [rast] empty srs --- Backtrace: ▆ 1. └─roads::prepExData(CLUSexample) 2. └─base::rapply(...) 3. ├─terra (local) ``(X, ...) 4. └─terra (local) ``(X, ...) 5. └─terra (local) .local(x, ...) 6. ├─base::eval(parse(text = x@definition)) 7. │ └─base::eval(parse(text = x@definition)) 8. ├─terra::rast(...) 9. └─terra::rast(...) 10. └─terra (local) .local(x = x, ...) 11. └─terra:::new_rast(...) 12. └─terra:::messages(r, "rast") 13. └─terra:::error(f, x@pntr$getError()) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Error: processing vignette 'roads-vignette.Rmd' failed with diagnostics: [rast] empty srs --- failed re-building 'roads-vignette.Rmd' SUMMARY: processing the following files failed: 'ReconstructRoadHistory.Rmd' 'grade-penalty.Rmd' 'roads-vignette.Rmd' Error: Vignette re-building failed. Execution halted * checking PDF version of manual ... [17s] OK * checking HTML version of manual ... [3s] OK * DONE Status: 3 ERRORs