Running ‘testthat.R’ [106s/125s]
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 
  
                                                                                  
  
                                                                                  
  
                                                                                  
  
                                                                                  
  
                                                                                  
  
                                                                                  
  
                                                                                  
  
                                                                                  
  
                                                                                  
  
                                                                                  
  
                                                                                  
  
                                                                                  
  
                                                                                  
  
                                                                                  
  
                                                                                  
  
                                                                                  
  
                                                                                  
  
                                                                                  
  
                                                                                  
  
                                                                                  
  
                                                                                  
  
                                                                                  
  
                                                                                  
  
                                                                                  
  
                                                                                  
  
                                                                                  
  
                                                                                  
  
                                                                                  
  
                                                                                  
  
                                                                                  
  
                                                                                  
  
                                                                                  
  
                                                                                  
  
                                                                                  
  
                                                                                  
  
                                                                                  
  
                                                                                  
  
                                                                                  
  
                                                                                  
  
                                                                                  
  
                                                                                  
  
                                                                                  
  
                                                                                  
  
                                                                                  
  
                                                                                  
  
                                                                                  
  
                                                                                  
  
                                                                                  
  
                                                                                  
  
                                                                                  
  
                                                                                  
  
                                                                                  
  
                                                                                  
  
                                                                                  
  
                                                                                  
  
                                                                                  
  
                                                                                  
  
                                                                                  
  
                                                                                  
  
                                                                                  
  
                                                                                  
  
                                                                                  
  
                                                                                  
  
                                                                                  
  
                                                                                  
  
                                                                                  
  
                                                                                  
  
                                                                                  
  
                                                                                  
  
                                                                                  
  
                                                                                  
  
                                                                                  
  
                                                                                  
  
                                                                                  
  
                                                                                  
  
                                                                                  
  
                                                                                  
  
                                                                                  
  
                                                                                  
  
                                                                                  
  
                                                                                  
  
                                                                                  
  
                                                                                  
  
                                                                                  
  
                                                                                  
  
                                                                                  
  
                                                                                  
  
                                                                                  
  
                                                                                  
  
                                                                                  
  
                                                                                  
  
                                                                                  
  
                                                                                  
  
                                                                                  
  
                                                                                  
  
                                                                                  
  
                                                                                  
  
                                                                                  
  
                                                                                  
  
                                                                                  
  
                                                                                  
  
                                                                                  
  
                                                                                  
  
                                                                                  
  OGR: Unsupported geometry type
  OGR: Unsupported geometry type
  
                                                                                  
  
                                                                                  
  
                                                                                  
  
                                                                                  
  
                                                                                  
  
                                                                                  
  
                                                                                  
  
                                                                                  
  
                                                                                  
  
                                                                                  
  
                                                                                  
  
                                                                                  
  
                                                                                  
  
                                                                                  
  
                                                                                  
  
                                                                                  
  
                                                                                  
  
                                                                                  
  
                                                                                  
  
                                                                                  
  
                                                                                  
  
                                                                                  
  
                                                                                  
  
                                                                                  
  
                                                                                  
  
                                                                                  
  
                                                                                  
  
                                                                                  
  
                                                                                  
  
                                                                                  
  
                                                                                  
  
                                                                                  
  
                                                                                  
  
                                                                                  
  
                                                                                  
  
                                                                                  
  
                                                                                  
  
                                                                                  
  
                                                                                  
  
                                                                                  
  
                                                                                  
  
                                                                                  
  
                                                                                  
  
                                                                                  
  
                                                                                  
  
                                                                                  
  
                                                                                  
  
                                                                                  
  
                                                                                  
  
                                                                                  
  
                                                                                  
  Chunk 1 of 1 (100%): state ✓
  
                                                                                  
  Saving _problems/test-metrics_voxels-5.R
  Saving _problems/test-metrics_voxels-14.R
  Saving _problems/test-metrics_voxels-23.R
  
                                                                                  
  
                                                                                  
  
                                                                                  
  
                                                                                  
  
                                                                                  
  
                                                                                  
  
                                                                                  
  
                                                                                  
  
                                                                                  
  
                                                                                  
  
                                                                                  
  
                                                                                  
  
                                                                                  
  
                                                                                  
  
                                                                                  
  
                                                                                  
  
                                                                                  
  
                                                                                  
  
                                                                                  
  
                                                                                  
  
                                                                                  
  
                                                                                  
  
                                                                                  
  
                                                                                  
  
                                                                                  
  
                                                                                  
  
                                                                                  
  
                                                                                  
  
                                                                                  
  
                                                                                  
  
                                                                                  
  
                                                                                  
  
                                                                                  
  
                                                                                  
  
                                                                                  
  
                                                                                  
  
                                                                                  
  
                                                                                  
  
                                                                                  
  
                                                                                  
  
                                                                                  
  
                                                                                  
  
                                                                                  
  
                                                                                  
  
                                                                                  
  [ FAIL 3 | WARN 0 | SKIP 46 | PASS 1289 ]
  
  ══ 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-metrics_voxels.R:5:3'): voxel_metrics returns a named data.frame ──
  Error in ``[.data.table`(by, , `:=`(GRP, .GRP), by = c("Xgrid", "Ygrid", "Zgrid"))`: attempt access index 3/3 in VECTOR_ELT
  Backtrace:
      ▆
   1. └─lidR::voxel_metrics(las, list(Imean = mean(Intensity)), 5) at test-metrics_voxels.R:5:3
   2.   ├─by[, `:=`(GRP, .GRP), by = c("Xgrid", "Ygrid", "Zgrid")]
   3.   └─data.table:::`[.data.table`(...)
  ── Error ('test-metrics_voxels.R:14:3'): voxel_metrics works with all_voxels ───
  Error in ``[.data.table`(by, , `:=`(GRP, .GRP), by = c("Xgrid", "Ygrid", "Zgrid"))`: attempt access index 3/3 in VECTOR_ELT
  Backtrace:
      ▆
   1. └─lidR::voxel_metrics(las, list(Imean = mean(Intensity)), 5, all_voxels = TRUE) at test-metrics_voxels.R:14:3
   2.   ├─by[, `:=`(GRP, .GRP), by = c("Xgrid", "Ygrid", "Zgrid")]
   3.   └─data.table:::`[.data.table`(...)
  ── Error ('test-metrics_voxels.R:23:3'): voxel_metrics accepts both an expression or a formula ──
  Error in ``[.data.table`(by, , `:=`(GRP, .GRP), by = c("Xgrid", "Ygrid", "Zgrid"))`: attempt access index 3/3 in VECTOR_ELT
  Backtrace:
      ▆
   1. └─lidR::voxel_metrics(las, list(Imean = mean(Intensity)), 5) at test-metrics_voxels.R:23:3
   2.   ├─by[, `:=`(GRP, .GRP), by = c("Xgrid", "Ygrid", "Zgrid")]
   3.   └─data.table:::`[.data.table`(...)
  
  [ FAIL 3 | WARN 0 | SKIP 46 | PASS 1289 ]
  Error:
  ! Test failures.
  Execution halted