* using log directory 'd:/Rcompile/CRANpkg/local/4.4/lidR.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 'lidR/DESCRIPTION' ... OK * checking extension type ... Package * this is package 'lidR' version '4.2.2' * 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 'lidR' can be installed ... OK * used C++ compiler: 'g++.exe (GCC) 13.3.0' * checking C++ specification ... OK Not all R platforms support C++17 * checking installed package size ... NOTE installed size is 5.6Mb sub-directories of 1Mb or more: R 1.1Mb doc 1.0Mb extdata 1.2Mb libs 1.8Mb * 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 ... [9s] 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 ... [8s] 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 ... [49s] OK * checking Rd files ... [2s] 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 line endings in Makefiles ... OK * checking compilation flags in Makevars ... OK * checking for GNU extensions in Makefiles ... OK * checking for portable use of $(BLAS_LIBS) and $(LAPACK_LIBS) ... OK * checking use of PKG_*FLAGS in Makefiles ... OK * checking pragmas in C/C++ headers and code ... OK * checking compiled code ... OK * checking installed files from 'inst/doc' ... OK * checking files in 'vignettes' ... OK * checking examples ... [68s] OK * checking for unstated dependencies in 'tests' ... OK * checking tests ... [188s] ERROR Running 'testthat.R' [187s] Running the tests in 'tests/testthat.R' failed. Complete output: > Sys.setenv("R_TESTS" = "") > > library(testthat) > library(lidR) > test_check("lidR") Tests using raster: terra Tests using future: TRUE Tests using OpenMP thread: 1 Tests using rlas: 1.8.2 Saving _problems/test-apply_generic-85.R Saving _problems/test-apply_independent-19.R Saving _problems/test-apply_restart-21.R OGR: Unsupported geometry type OGR: Unsupported geometry type Saving _problems/test-metrics_pixels-163.R Saving _problems/test-metrics_pixels-225.R Chunk 1 of 1 (100%): state ✓ Saving _problems/test-rasterize_canopy-103.R Saving _problems/test-rasterize_canopy-121.R Saving _problems/test-rasterize_density-16.R Saving _problems/test-rasterize_terrain-129.R [ FAIL 9 | WARN 17 | SKIP 46 | PASS 1269 ] ══ Skipped tests (46) ══════════════════════════════════════════════════════════ • On CRAN (41): 'test-apply_automerge.R:99:3', 'test-apply_automerge.R:163:3', 'test-apply_automerge.R:183:3', 'test-apply_automerge.R:196:3', 'test-apply_automerge.R:217:3', 'test-apply_automerge.R:229:3', 'test-apply_automerge.R:263:3', 'test-apply_automerge.R:274:3', 'test-apply_automerge.R:320:3', 'test-apply_automerge.R:335:3', 'test-apply_autoread.R:3:3', 'test-apply_generic.R:22:3', 'test-apply_generic.R:108:3', 'test-catalog_laxindex.R:4:3', 'test-classify_ground.R:62:3', 'test-classify_poi.R:21:3', 'test-concaveman.R:15:3', 'test-concaveman.R:64:3', 'test-fullwaveform.R:2:3', 'test-generic_local_maximum.R:2:3', 'test-metrics_crowns.R:31:3', 'test-metrics_crowns.R:112:3', 'test-metrics_crowns.R:122:3', 'test-plot.R:7:3', 'test-plot.R:15:3', 'test-plot.R:49:3', 'test-plot.R:73:3', 'test-plot.R:79:3', 'test-plot.R:86:3', 'test-plot.R:93:3', 'test-plot.R:100:3', 'test-plot.R:107:3', 'test-plot.R:118:3', 'test-projection.R:82:3', 'test-projection.R:107:3', 'test-rasterize_canopy.R:66:3', 'test-rasterize_terrain.R:145:3', 'test-segment_snags.R:27:2', 'test-segment_trees.R:73:3', 'test-track_sensor.R:45:3', 'test-voxelize_points.R:15:3' • Point metrics disable (1): 'test-segment_shape.R:51:3' • Point metrics disabled (1): 'test-metrics_points.R:9:1' • empty test (3): , , ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error ('test-apply_generic.R:85:3'): catalog_apply fixes chunk alignment even by file ── Error: [rast] empty srs Backtrace: ▆ 1. └─lidR::catalog_sapply(ctg, test, res = res, align = sta) at test-apply_generic.R:85:3 2. └─lidR::catalog_apply(ctg, FUN, ..., .options = .options) 3. └─lidR::engine_apply(...) 4. ├─terra::rast(res) 5. └─terra::rast(res) 6. └─terra (local) .local(x, ...) 7. ├─terra::unwrap(x) 8. └─terra::unwrap(x) 9. └─terra (local) .local(x, ...) 10. ├─base::eval(parse(text = x@definition)) 11. │ └─base::eval(parse(text = x@definition)) 12. ├─terra::rast(...) 13. └─terra::rast(...) 14. └─terra (local) .local(x = x, ...) 15. └─terra:::new_rast(...) 16. └─terra:::messages(r, "rast") 17. └─terra:::error(f, x@pntr$getError()) ── Error ('test-apply_independent.R:19:3'): opt_independent_files built several DTMs without error ── Error: [rast] empty srs Backtrace: ▆ 1. ├─lidR::rasterize_terrain(ctg, 1, tin()) at test-apply_independent.R:19:3 2. └─lidR:::rasterize_terrain.LAScatalog(ctg, 1, tin()) 3. └─lidR::catalog_apply(...) 4. └─lidR::engine_apply(...) 5. ├─terra::rast(res) 6. └─terra::rast(res) 7. └─terra (local) .local(x, ...) 8. ├─terra::unwrap(x) 9. └─terra::unwrap(x) 10. └─terra (local) .local(x, ...) 11. ├─base::eval(parse(text = x@definition)) 12. │ └─base::eval(parse(text = x@definition)) 13. ├─terra::rast(...) 14. └─terra::rast(...) 15. └─terra (local) .local(x = x, ...) 16. └─terra:::new_rast(...) 17. └─terra:::messages(r, "rast") 18. └─terra:::error(f, x@pntr$getError()) ── Error ('test-apply_restart.R:21:3'): catalog engine returns a valid output ── Error: [rast] empty srs Backtrace: ▆ 1. ├─lidR::pixel_metrics(ctg, ~mean(Z), 20) at test-apply_restart.R:21:3 2. └─lidR:::pixel_metrics.LAScatalog(ctg, ~mean(Z), 20) 3. └─lidR::catalog_apply(...) 4. └─lidR::engine_apply(...) 5. ├─terra::rast(res) 6. └─terra::rast(res) 7. └─terra (local) .local(x, ...) 8. ├─terra::unwrap(x) 9. └─terra::unwrap(x) 10. └─terra (local) .local(x, ...) 11. ├─base::eval(parse(text = x@definition)) 12. │ └─base::eval(parse(text = x@definition)) 13. ├─terra::rast(...) 14. └─terra::rast(...) 15. └─terra (local) .local(x = x, ...) 16. └─terra:::new_rast(...) 17. └─terra:::messages(r, "rast") 18. └─terra:::error(f, x@pntr$getError()) ── Error ('test-metrics_pixels.R:163:3'): pixel_metric returns the same both with LAScatalog and LAS ── Error: [rast] empty srs Backtrace: ▆ 1. ├─lidR::pixel_metrics(ctg, f1, 20) at test-metrics_pixels.R:163:3 2. └─lidR:::pixel_metrics.LAScatalog(ctg, f1, 20) 3. └─lidR::catalog_apply(...) 4. └─lidR::engine_apply(...) 5. ├─terra::rast(res) 6. └─terra::rast(res) 7. └─terra (local) .local(x, ...) 8. ├─terra::unwrap(x) 9. └─terra::unwrap(x) 10. └─terra (local) .local(x, ...) 11. ├─base::eval(parse(text = x@definition)) 12. │ └─base::eval(parse(text = x@definition)) 13. ├─terra::rast(...) 14. └─terra::rast(...) 15. └─terra (local) .local(x = x, ...) 16. └─terra:::new_rast(...) 17. └─terra:::messages(r, "rast") 18. └─terra:::error(f, x@pntr$getError()) ── Failure ('test-metrics_pixels.R:225:3'): predefined metric set work both with a LAS and LAScatalog ── `pixel_metrics(ctg, .stdmetrics_z)` threw an error. Message: [rast] empty srs Class: simpleError/error/condition Backtrace: ▆ 1. ├─testthat::expect_error(pixel_metrics(ctg, .stdmetrics_z), NA) at test-metrics_pixels.R:225: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. ├─lidR::pixel_metrics(ctg, .stdmetrics_z) 7. └─lidR:::pixel_metrics.LAScatalog(ctg, .stdmetrics_z) 8. └─lidR::catalog_apply(...) 9. └─lidR::engine_apply(...) 10. ├─terra::rast(res) 11. └─terra::rast(res) 12. └─terra (local) .local(x, ...) 13. ├─terra::unwrap(x) 14. └─terra::unwrap(x) 15. └─terra (local) .local(x, ...) 16. ├─base::eval(parse(text = x@definition)) 17. │ └─base::eval(parse(text = x@definition)) 18. ├─terra::rast(...) 19. └─terra::rast(...) 20. └─terra (local) .local(x = x, ...) 21. └─terra:::new_rast(...) 22. └─terra:::messages(r, "rast") 23. └─terra:::error(f, x@pntr$getError()) ── Error ('test-rasterize_canopy.R:103:3'): rasterize_canopy tin works both with LAS and LAScatalog ── Error: [rast] empty srs Backtrace: ▆ 1. ├─lidR::rasterize_canopy(ctg, 1, f) at test-rasterize_canopy.R:103:3 2. └─lidR:::rasterize_canopy.LAScatalog(ctg, 1, f) 3. └─lidR::catalog_apply(...) 4. └─lidR::engine_apply(...) 5. ├─terra::rast(res) 6. └─terra::rast(res) 7. └─terra (local) .local(x, ...) 8. ├─terra::unwrap(x) 9. └─terra::unwrap(x) 10. └─terra (local) .local(x, ...) 11. ├─base::eval(parse(text = x@definition)) 12. │ └─base::eval(parse(text = x@definition)) 13. ├─terra::rast(...) 14. └─terra::rast(...) 15. └─terra (local) .local(x = x, ...) 16. └─terra:::new_rast(...) 17. └─terra:::messages(r, "rast") 18. └─terra:::error(f, x@pntr$getError()) ── Error ('test-rasterize_canopy.R:121:3'): rasterize_canopy pit-free works both with LAS and LAScatalog ── Error: [rast] empty srs Backtrace: ▆ 1. ├─lidR::rasterize_canopy(ctg, 1, f) at test-rasterize_canopy.R:121:3 2. └─lidR:::rasterize_canopy.LAScatalog(ctg, 1, f) 3. └─lidR::catalog_apply(...) 4. └─lidR::engine_apply(...) 5. ├─terra::rast(res) 6. └─terra::rast(res) 7. └─terra (local) .local(x, ...) 8. ├─terra::unwrap(x) 9. └─terra::unwrap(x) 10. └─terra (local) .local(x, ...) 11. ├─base::eval(parse(text = x@definition)) 12. │ └─base::eval(parse(text = x@definition)) 13. ├─terra::rast(...) 14. └─terra::rast(...) 15. └─terra (local) .local(x = x, ...) 16. └─terra:::new_rast(...) 17. └─terra:::messages(r, "rast") 18. └─terra:::error(f, x@pntr$getError()) ── Error ('test-rasterize_density.R:16:3'): rasterize_density returns the same both with LAScatalog and LAS ── Error: [rast] empty srs Backtrace: ▆ 1. ├─lidR::rasterize_density(ctg) at test-rasterize_density.R:16:3 2. └─lidR:::rasterize_density.LAScatalog(ctg) 3. └─lidR::catalog_map(las, rasterize_density, res = res, ..., .options = options) 4. └─lidR::catalog_apply(ctg, FUN, ..., .options = .options) 5. └─lidR::engine_apply(...) 6. ├─terra::rast(res) 7. └─terra::rast(res) 8. └─terra (local) .local(x, ...) 9. ├─terra::unwrap(x) 10. └─terra::unwrap(x) 11. └─terra (local) .local(x, ...) 12. ├─base::eval(parse(text = x@definition)) 13. │ └─base::eval(parse(text = x@definition)) 14. ├─terra::rast(...) 15. └─terra::rast(...) 16. └─terra (local) .local(x = x, ...) 17. └─terra:::new_rast(...) 18. └─terra:::messages(r, "rast") 19. └─terra:::error(f, x@pntr$getError()) ── Error ('test-rasterize_terrain.R:129:3'): rasterize_terrain returns the same both with LAScatalog and LAS ── Error: [rast] empty srs Backtrace: ▆ 1. ├─lidR::rasterize_terrain(ctg, 1, tin()) at test-rasterize_terrain.R:129:3 2. └─lidR:::rasterize_terrain.LAScatalog(ctg, 1, tin()) 3. └─lidR::catalog_apply(...) 4. └─lidR::engine_apply(...) 5. ├─terra::rast(res) 6. └─terra::rast(res) 7. └─terra (local) .local(x, ...) 8. ├─terra::unwrap(x) 9. └─terra::unwrap(x) 10. └─terra (local) .local(x, ...) 11. ├─base::eval(parse(text = x@definition)) 12. │ └─base::eval(parse(text = x@definition)) 13. ├─terra::rast(...) 14. └─terra::rast(...) 15. └─terra (local) .local(x = x, ...) 16. └─terra:::new_rast(...) 17. └─terra:::messages(r, "rast") 18. └─terra:::error(f, x@pntr$getError()) [ FAIL 9 | WARN 17 | SKIP 46 | PASS 1269 ] Error: ! Test failures. Execution halted * checking for unstated dependencies in vignettes ... OK * checking package vignettes ... OK * checking re-building of vignette outputs ... [59s] OK * checking PDF version of manual ... [28s] OK * checking HTML version of manual ... [19s] OK * DONE Status: 1 ERROR, 1 NOTE