* using log directory ‘/data/gannet/ripley/R/packages/tests-Suggests/lidR.Rcheck’ * using R Under development (unstable) (2024-04-19 r86451) * using platform: x86_64-pc-linux-gnu * R was compiled by gcc-13 (GCC) 13.2.0 GNU Fortran (GCC) 13.2.0 * running under: Fedora Linux 36 (Workstation Edition) * using session charset: UTF-8 * using option ‘--no-stop-on-test-error’ * checking for file ‘lidR/DESCRIPTION’ ... OK * checking extension type ... Package * this is package ‘lidR’ version ‘4.1.1’ * 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 executable files ... OK * checking for hidden files and directories ... OK * checking for portable file names ... OK * checking for sufficient/correct file permissions ... OK * checking whether package ‘lidR’ can be installed ... [283s/248s] OK * used C++ compiler: ‘g++-13 (GCC) 13.2.0’ * 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 ... [13s/17s] OK * checking whether the package can be loaded with stated dependencies ... [12s/17s] OK * checking whether the package can be unloaded cleanly ... [13s/17s] OK * checking whether the namespace can be loaded with stated dependencies ... [13s/17s] OK * checking whether the namespace can be unloaded cleanly ... [14s/16s] OK * checking loading without being on the library search path ... [14s/18s] OK * checking whether startup messages can be suppressed ... [13s/16s] 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 ... [104s/133s] OK * checking Rd files ... OK * checking Rd metadata ... OK * checking Rd line widths ... 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 use of SHLIB_OPENMP_*FLAGS in Makefiles ... OK * checking pragmas in C/C++ headers and code ... OK * checking compilation flags used ... OK * checking compiled code ... OK * checking installed files from ‘inst/doc’ ... OK * checking files in ‘vignettes’ ... OK * checking examples ... [19s/30s] ERROR Running examples in ‘lidR-Ex.R’ failed The error most likely occurred in: > ### Name: catalog_boundaries > ### Title: Computes the polygon that encloses the points > ### Aliases: catalog_boundaries > > ### ** Examples > > LASfile <- system.file("extdata", "Megaplot.laz", package="lidR") > ctg <- readLAScatalog(LASfile, filter = "-drop_z_below 0.5") > ctg2 <- catalog_boundaries(ctg, concavity = 1, length_threshold = 15) Chunk 1 of 1 (100%): state ✓ > plot(ctg) > plot(ctg2, add = TRUE) Error in (function (cond) : error in evaluating the argument 'x' in selecting a method for function 'plot': there is no package called ‘sp’ Calls: plot ... loadNamespace -> withRestarts -> withOneRestart -> doWithOneRestart Execution halted * checking for unstated dependencies in ‘tests’ ... OK * checking tests ... Running ‘testthat.R’ [81s/100s] [82s/101s] ERROR 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: FALSE Tests using OpenMP thread: 1 OGR: Unsupported geometry type OGR: Unsupported geometry type Chunk 1 of 1 (100%): state ✓ [ FAIL 2 | WARN 0 | SKIP 71 | PASS 1183 ] ══ Skipped tests (71) ══════════════════════════════════════════════════════════ • EBImage cannot be loaded (3): 'test-segment_trees.R:117:3', 'test-segment_trees.R:220:3', 'test-segment_trees.R:247:3' • On CRAN (32): '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_autoread.R:3:3', 'test-apply_generic.R:22:3', 'test-apply_generic.R:108:3', 'test-catalog_laxindex.R:4: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: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-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' • geometry cannot be loaded (5): 'test-delaunay.R:22:3', 'test-delaunay.R:68:3', 'test-delaunay.R:146:3', 'test-rasterize_terrain.R:155:3', 'test-roughness.R:3:1' • gstat cannot be loaded (2): 'test-normalize_height.R:30:3', 'test-rasterize_terrain.R:65:3' • raster cannot be loaded (15): 'test-apply_automerge.R:79:3', 'test-apply_automerge.R:98:3', 'test-apply_automerge.R:117:5', 'test-apply_automerge.R:319:3', 'test-apply_automerge.R:334:3', 'test-locate_trees.R:50:3', 'test-merges_spatial.R:116:3', 'test-merges_spatial.R:136:3', 'test-metrics_pixels.R:178:3', 'test-metrics_pixels.R:240:3', 'test-rasterize_canopy.R:20:3', 'test-rasterize_density.R:35:3', 'test-rasterize_terrain.R:34:3', 'test-segment_trees.R:228:3', 'test-segment_trees.R:237:3' • sp cannot be loaded (14): 'test-LAS.R:245:3', 'test-LAScatalog.R:27:3', 'test-apply_automerge.R:162:3', 'test-apply_automerge.R:182:3', 'test-clip.R:96:3', 'test-locate_trees.R:30:3', 'test-merges_spatial.R:15:3', 'test-metrics_crowns.R:80:3', 'test-metrics_crowns.R:88:3', 'test-metrics_crowns.R:104:3', 'test-projection.R:70:4', 'test-projection.R:75:3', 'test-projection.R:81:3', 'test-projection.R:106:3' ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error ('test-classify_ground.R:15:1'): (code run outside of `test_that()`) ── Error: Package 'RCSF' needed for this function to work. Please install it. Backtrace: ▆ 1. └─lidR::csf(TRUE, 1, 1, time_step = 1) at test-classify_ground.R:15:1 2. └─lidR:::assert_package_is_installed("RCSF") ── Error ('test-print.R:69:3'): print works with lidR algorithms ────────────── Error: Package 'RCSF' needed for this function to work. Please install it. Backtrace: ▆ 1. └─lidR::csf() at test-print.R:69:3 2. └─lidR:::assert_package_is_installed("RCSF") [ FAIL 2 | WARN 0 | SKIP 71 | PASS 1183 ] Error: Test failures Execution halted * checking for unstated dependencies in vignettes ... OK * checking package vignettes ... OK * checking re-building of vignette outputs ... [80s/105s] OK * checking PDF version of manual ... [16s/21s] OK * checking HTML version of manual ... [8s/14s] OK * checking for non-standard things in the check directory ... OK * checking for detritus in the temp directory ... OK * DONE Status: 2 ERRORs See ‘/data/gannet/ripley/R/packages/tests-Suggests/lidR.Rcheck/00check.log’ for details. Command exited with non-zero status 1 Time 17:05.37, 827.52 + 43.99