- using R Under development (unstable) (2025-12-19 r89206)
- using platform: x86_64-pc-linux-gnu
- R was compiled by
gcc-15 (Debian 15.2.0-11) 15.2.0
GNU Fortran (Debian 15.2.0-11) 15.2.0
- running under: Debian GNU/Linux forky/sid
- using session charset: UTF-8
- checking for file ‘PiC/DESCRIPTION’ ... OK
- checking extension type ... Package
- this is package ‘PiC’ version ‘1.2.7’
- package encoding: UTF-8
- checking CRAN incoming feasibility ... [1s/2s] OK
- 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 ‘PiC’ can be installed ... OK
See the install log for details.
- checking package directory ... OK
- checking for future file timestamps ... 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 ... [1s/2s] OK
- checking whether the package can be loaded with stated dependencies ... [2s/2s] OK
- checking whether the package can be unloaded cleanly ... [1s/2s] OK
- checking whether the namespace can be loaded with stated dependencies ... [1s/1s] OK
- checking whether the namespace can be unloaded cleanly ... [1s/2s] OK
- checking loading without being on the library search path ... [2s/2s] 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 ... [10s/12s] OK
- checking Rd files ... [0s/0s] 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 examples ... [2s/2s] OK
- checking for unstated dependencies in ‘tests’ ... OK
- checking tests ... [37s/37s] ERROR
Running ‘testthat.R’ [37s/36s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
> # This file is part of the standard setup for testthat.
> # It is recommended that you do not modify it.
> #
> # Where should you do additional test configuration?
> # Learn more about the roles of various files in:
> # * https://r-pkgs.org/testing-design.html#sec-tests-files-overview
> # * https://testthat.r-lib.org/articles/special-files.html
>
> library(testthat)
> library(withr)
> library(PiC)
>
> test_check("PiC")
Attaching package: 'data.table'
The following object is masked from 'package:base':
%notin%
Joining with `by = join_by(u, v)`
Joining with `by = join_by(cls)`
Joining with `by = join_by(u, v, w)`
Joining with `by = join_by(u, v, w)`
Joining with `by = join_by(u, v, w)`
Joining with `by = join_by(u, v, w)`
File Forest_floor:/tmp/RtmpglombK/test_forest/Forest_floor.txt
File AGB:/tmp/RtmpglombK/test_forest/AGB.txt
Forest Floor segmentation: 2.449 sec elapsed
Percorso del file Forest_floor: /tmp/RtmpglombK/test_forest/Forest_floor.txt
Percorso del file AGB: /tmp/RtmpglombK/test_forest/AGB.txt
Stage 1: Forest floor segmentation
Forest floor saved to: /tmp/RtmpglombK/test_forest_seg/test_forest_dim3_th1_Forest_floor_soil_dim_0.1.txt
Stage 2: Wood segmentation
Wood points saved to: /tmp/RtmpglombK/test_forest_seg/test_forest_dim3_th1_Wood_eps2_mpts6.txt
Stage 3: Separating foliage from wood
Foliage points saved to: /tmp/RtmpglombK/test_forest_seg/test_forest_dim3_th1_AGBnoWOOD_eps2_mpts6.txt
Stage 4: Calculating tree metrics and canopy analysis
Calculating individual tree coordinates...
Calculating tree heights...
Saving _problems/test-Forest_seg-100.R
========================================
SegOne v4.1.1: Single Tree Analysis
Robust error handling + Adaptive density threshold
========================================
--- Analysis Parameters ---
Input points: 251,363
Voxel size: 2 cm (0.02 m)
DBSCAN parameters: eps = 2, minPts = 6
Minimum cluster size: 200 voxels
Shape parameter threshold: 30
Output directory: /tmp/RtmpglombK/file18edd8fba5a04
Stage 1/4: Wood segmentation
Voxelizing point cloud...
Voxels generated: 151,781
Running DBSCAN clustering...
Clusters found: 2 (>200 voxels)
Applying PCA shape filter (R > 30)...
Wood clusters accepted: 1 / 1
Mean shape parameter R: 113.68
Wood points identified: 192,870
Wood clusters detected: 1
Wood file saved: test_tree_dim2_th1_Wood_eps2_mpts6.txt
Stage 2/4: Foliage separation
Performing voxel-based subtraction...
Voxelizing at 0.2 m resolution...
Performing voxel-based subtraction...
Foliage points identified: 56,301
Wood/foliage ratio: 3.43
Stage 3/4: Metrics calculation skipped (calculate_metrics = FALSE)
Stage 4/4: Analysis completed successfully
Total time: 2.079 sec elapsed
========================================
Output Files Generated:
1. Wood points: test_tree_dim2_th1_Wood_eps2_mpts6.txt
-> 192,870 points
2. Foliage points: test_tree_dim2_th1_AGBnoWOOD_eps2_mpts6.txt
-> 56,301 points
========================================
Voxelizing time: 0.004 sec elapsed
[ FAIL 1 | WARN 2 | SKIP 7 | PASS 35 ]
══ Skipped tests (7) ═══════════════════════════════════════════════════════════
• Could not find shiny app file: global.R (5): 'test-shiny-app.r:32:3',
'test-shiny-app.r:70:3', 'test-shiny-app.r:85:3', 'test-shiny-app.r:96:3',
'test-shiny-app.r:116:3'
• Could not find shiny app file: server.R (1): 'test-shiny-app.r:201:3'
• Could not find shiny app file: ui.R (1): 'test-shiny-app.r:221:3'
══ Failed tests ════════════════════════════════════════════════════════════════
── Failure ('test-Forest_seg.R:88:3'): Forest_seg funziona correttamente con una scena forestale realistica ──
Expected `Forest_seg(...)` not to throw any errors.
Actually got a <simpleError> with message:
attempt access index 3/3 in VECTOR_ELT
[ FAIL 1 | WARN 2 | SKIP 7 | PASS 35 ]
Error:
! Test failures.
Execution halted
- checking PDF version of manual ... [4s/6s] OK
- checking HTML version of manual ... [1s/2s] OK
- checking for non-standard things in the check directory ... OK
- DONE
Status: 1 ERROR