Running ‘testthat.R’ [30s/30s]
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")
  Error: ERROR: '%s' after %u of %u points1. Error: lasdecimate homogenize works (@test-lasdecimate.R#13) ----------------
  First argument is not a LAS object
  1: lasdecimate(las, density = 0.5, res = 5) at testthat/test-lasdecimate.R:13
  2: stopifnotlas(.las)
  3: stop("First argument is not a LAS object", call. = F)
  
  Error: ERROR: '%s' after %u of %u points2. Failure: read las works (@test-readLAS.R#7) ---------------------------------
  `las` inherits from `NULL` not `LAS`.
  
  
  Error: ERROR: '%s' after %u of %u points3. Error: read XYZ only works (@test-readLAS.R#17) -----------------------------
  trying to get slot "data" from an object of a basic class ("NULL") with no slots
  1: expect_equal(dim(las@data)[2], 4) at testthat/test-readLAS.R:17
  2: compare(object, expected, ...)
  
  Error: ERROR: '%s' after %u of %u pointsError: ERROR: '%s' after %u of %u pointsError: ERROR: '%s' after %u of %u points4. Error: read multiple files works (@test-readLAS.R#22) -----------------------
  trying to get slot "data" from an object of a basic class ("NULL") with no slots
  1: expect_equal(3 * dim(las@data)[1], dim(las2@data)[1]) at testthat/test-readLAS.R:22
  2: compare(object, expected, ...)
  
  [using inverse distance weighting]
  [using Delaunay triangulation]
  [using universal kriging]
  testthat results ================================================================
  OK: 68 SKIPPED: 0 FAILED: 4
  1. Error: lasdecimate homogenize works (@test-lasdecimate.R#13) 
  2. Failure: read las works (@test-readLAS.R#7) 
  3. Error: read XYZ only works (@test-readLAS.R#17) 
  4. Error: read multiple files works (@test-readLAS.R#22) 
  
  Error: testthat unit tests failed
  Execution halted