Running 'testthat.R'
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: 24 
  OGR: Unsupported geometry type
  OGR: Unsupported geometry type
  Error in x$.self$finalize() : attempt to apply non-function
  Error in x$.self$finalize() : attempt to apply non-function
  Error in x$.self$finalize() : attempt to apply non-function
  Error in x$.self$finalize() : attempt to apply non-function
  Error in x$.self$finalize() : attempt to apply non-function
  Error in x$.self$finalize() : attempt to apply non-function
  Error in x$.self$finalize() : attempt to apply non-function
  Error in x$.self$finalize() : attempt to apply non-function
  Error in x$.self$finalize() : attempt to apply non-function
  Error in x$.self$finalize() : attempt to apply non-function
  Error in x$.self$finalize() : attempt to apply non-function
  Error in x$.self$finalize() : attempt to apply non-function
  Error in x$.self$finalize() : attempt to apply non-function
  Error in x$.self$finalize() : attempt to apply non-function
  Error in x$.self$finalize() : attempt to apply non-function
  Error in x$.self$finalize() : attempt to apply non-function
  Error in x$.self$finalize() : attempt to apply non-function
  Error in x$.self$finalize() : attempt to apply non-function
  Error in x$.self$finalize() : attempt to apply non-function
  Error in x$.self$finalize() : attempt to apply non-function
  Error in x$.self$finalize() : attempt to apply non-function
  Error in x$.self$finalize() : attempt to apply non-function
  Error in x$.self$finalize() : attempt to apply non-function
  Error in x$.self$finalize() : attempt to apply non-function
  Error in x$.self$finalize() : attempt to apply non-function
  Error in x$.self$finalize() : attempt to apply non-function
  Error in x$.self$finalize() : attempt to apply non-function
  Error in x$.self$finalize() : attempt to apply non-function
  Error in x$.self$finalize() : attempt to apply non-function
  Error in x$.self$finalize() : attempt to apply non-function
  Error in x$.self$finalize() : attempt to apply non-function
  Error in x$.self$finalize() : attempt to apply non-function
  Error in x$.self$finalize() : attempt to apply non-function
  Error in x$.self$finalize() : attempt to apply non-function
  Error in x$.self$finalize() : attempt to apply non-function
  Error in x$.self$finalize() : attempt to apply non-function
  Error in x$.self$finalize() : attempt to apply non-function
  Error in x$.self$finalize() : attempt to apply non-function
  Error in x$.self$finalize() : attempt to apply non-function
  Error in x$.self$finalize() : attempt to apply non-function
  Error in x$.self$finalize() : attempt to apply non-function
  Error in x$.self$finalize() : attempt to apply non-function
  Error in x$.self$finalize() : attempt to apply non-function
  Error in x$.self$finalize() : attempt to apply non-function
  Error in x$.self$finalize() : attempt to apply non-function
  Error in x$.self$finalize() : attempt to apply non-function
  Error in x$.self$finalize() : attempt to apply non-function
  Error in x$.self$finalize() : attempt to apply non-function
  Error in x$.self$finalize() : attempt to apply non-function
  Error in x$.self$finalize() : attempt to apply non-function
  Error in x$.self$finalize() : attempt to apply non-function
  Error in x$.self$finalize() : attempt to apply non-function
  Error in x$.self$finalize() : attempt to apply non-function
  Error in x$.self$finalize() : attempt to apply non-function
  Error in x$.self$finalize() : attempt to apply non-function
  Error in x$.self$finalize() : attempt to apply non-function
  Error in x$.self$finalize() : attempt to apply non-function
  Error in x$.self$finalize() : attempt to apply non-function
  Error in x$.self$finalize() : attempt to apply non-function
  Error in x$.self$finalize() : attempt to apply non-function
  Error in x$.self$finalize() : attempt to apply non-function
  Error in x$.self$finalize() : attempt to apply non-function
  Error in x$.self$finalize() : attempt to apply non-function
  Error in x$.self$finalize() : attempt to apply non-function
  Error in x$.self$finalize() : attempt to apply non-function
  Error in x$.self$finalize() : attempt to apply non-function
  Error in x$.self$finalize() : attempt to apply non-function
  Error in x$.self$finalize() : attempt to apply non-function
  Error in x$.self$finalize() : attempt to apply non-function
  Error in x$.self$finalize() : attempt to apply non-function
  Error in x$.self$finalize() : attempt to apply non-function
  Error in x$.self$finalize() : attempt to apply non-function
  Error in x$.self$finalize() : attempt to apply non-function
  [ FAIL 1 | WARN 0 | SKIP 40 | PASS 1396 ]
  
  ══ Skipped tests ═══════════════════════════════════════════════════════════════
  • On CRAN (39)
  • empty test (1)
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Failure (test-rasterize_canopy.R:132:3): rasterize_canopy pit-free works both with LAS and LAScatalog ──
  lidR:::raster_values(x) not equal to lidR:::raster_values(y).
  1/7744 mismatches
  [4990] 0.048 - 0.047 == 0.001
  
  [ FAIL 1 | WARN 0 | SKIP 40 | PASS 1396 ]
  Error: Test failures
  Execution halted