Running ‘testthat.R’ [64s/64s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(lidR)
  Loading required package: magrittr
  
  Attaching package: 'magrittr'
  
  The following objects are masked from 'package:testthat':
  
      equals, is_less_than, not
  
  > 
  > test_check("lidR")
  Extracting data...
  
    |                                                                            
    |                                                                      |   0%ERROR: chunk with index 0 of 3 is corrupt after 2968 of 81590 points
  ERROR: chunk with index 0 of 3 is corrupt after 2968 of 81590 points
  
    |                                                                            
    |===================================                                   |  50%ERROR: chunk with index 0 of 3 is corrupt after 2968 of 81590 points
  ERROR: chunk with index 0 of 3 is corrupt after 2968 of 81590 points
  
    |                                                                            
    |======================================================================| 100%
  1. Failure: catalog queries works (@test-catalog.R#19) -------------------------
  length(req) not equal to 2.
  1/1 mismatches
  [1] 0 - 2 == -2
  
  
  2. Failure: catalog queries works (@test-catalog.R#20) -------------------------
  is(req[[1]], "LAS") isn't true.
  
  
  3. Failure: catalog queries works (@test-catalog.R#21) -------------------------
  is(req[[2]], "LAS") isn't true.
  
  
  4. Failure: catalog queries works (@test-catalog.R#22) -------------------------
  diff(range(req[[1]]$X)) not equal to 2 * r.
  1/1 mismatches
  [1] -Inf - 40 == -Inf
  
  
  5. Failure: catalog queries works (@test-catalog.R#23) -------------------------
  diff(range(req[[1]]$Y)) not equal to 2 * r.
  1/1 mismatches
  [1] -Inf - 40 == -Inf
  
  
  ERROR: chunk with index 0 of 3 is corrupt after 2968 of 81590 points
  ERROR: chunk with index 0 of 3 is corrupt after 2968 of 81590 points
  6. Failure: lasdecimate homogenize works (@test-lasdecimate.R#16) --------------
  between(median(xdec$density), 0.5 - sd(xdec$density), 0.5 + sd(xdec$density)) isn't true.
  
  
  7. Failure: lasdecimate homogenize works (@test-lasdecimate.R#21) --------------
  between(median(xdec$density), 0.8 - sd(xdec$density), 0.8 + sd(xdec$density)) isn't true.
  
  
  ERROR: chunk with index 1 of 3 is corrupt after 51366 of 52146 points
  ERROR: chunk with index 1 of 3 is corrupt after 51366 of 52146 points
  [using inverse distance weighting]
  [using Delaunay triangulation]
  [using universal kriging]
  ERROR: chunk with index 0 of 3 is corrupt after 2968 of 81590 points
  ERROR: chunk with index 0 of 3 is corrupt after 2968 of 81590 points
  ERROR: chunk with index 0 of 3 is corrupt after 2968 of 81590 points
  ERROR: chunk with index 0 of 3 is corrupt after 2968 of 81590 points
  ERROR: chunk with index 0 of 3 is corrupt after 2968 of 81590 points
  ERROR: chunk with index 0 of 3 is corrupt after 2968 of 81590 points
  ERROR: chunk with index 0 of 3 is corrupt after 2968 of 81590 points
  ERROR: chunk with index 0 of 3 is corrupt after 2968 of 81590 points
  ERROR: chunk with index 0 of 3 is corrupt after 2968 of 81590 points
  ERROR: chunk with index 0 of 3 is corrupt after 2968 of 81590 points
  ERROR: chunk with index 0 of 3 is corrupt after 2968 of 81590 points
  ERROR: chunk with index 0 of 3 is corrupt after 2968 of 81590 points
  Error: First argument is not a LAS object
  In addition: There were 20 warnings (use warnings() to see them)
  testthat results ================================================================
  OK: 119 SKIPPED: 0 FAILED: 7
  1. Failure: catalog queries works (@test-catalog.R#19) 
  2. Failure: catalog queries works (@test-catalog.R#20) 
  3. Failure: catalog queries works (@test-catalog.R#21) 
  4. Failure: catalog queries works (@test-catalog.R#22) 
  5. Failure: catalog queries works (@test-catalog.R#23) 
  6. Failure: lasdecimate homogenize works (@test-lasdecimate.R#16) 
  7. Failure: lasdecimate homogenize works (@test-lasdecimate.R#21) 
  
  Error: testthat unit tests failed
  Execution halted