Running ‘testthat.R’ [25s/24s]
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")
  Loading required package: sp
  
  Attaching package: 'raster'
  
  The following object is masked from 'package:lidR':
  
      area
  
  The following object is masked from 'package:magrittr':
  
      extract
  
  178755 bytes written
  239375 bytes written
  203311 bytes written
  261327 bytes written
  315843 bytes written
  251807 bytes written
  330123 bytes written
  311055 bytes written
  194967 bytes written
  Process done in 0 min
  
  
  Process done in 0 min
  
  
  Process done in 0 min
  
  OGR data source with driver: ESRI Shapefile 
  Source: "/home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/lidR/extdata", layer: "lake_polygons_UTM17"
  with 1 features
  It has 22 fields
  Integer64 fields read as strings:  ACQTECH ACCURACY PROVIDER METACOVER DEFINITION ISOLATED PERMANENCY 
  [using universal kriging]
  [using universal kriging]
  class        : LAS (LASF v1.2)
  memory       : 4.4 Mb 
  extent       : 684766.4 , 684993.3 , 5017773 , 5018007 (xmin, xmax, ymin, ymax)
  area         : 53112.7 m² (convex hull)
  points       : 81590 points,  56979 pulses
  density      : 1.54 points/m²,  1.07 pulses/m²
  field names  : X Y Z gpstime Intensity ReturnNumber NumberOfReturns Classification ScanAngle pulseID 
  coord. ref.  : NA 
  
  File signature:           LASF 
  File source ID:           0 
  Global encoding:          0 
  Project ID - GUID:        0 
  Version:                  1.2
  System identifier:         
  Generating software:      lidR R package 
  File creation d/y:        260/2017
  header size:              227 
  Offset to point data:     227 
  Num. var. length record:  0 
  Point data format:        1 
  Point data record length: 28 
  Num. of point records:    81590 
  Num. of points by return: 55756 21493 3999 342 0 
  Scale factor X Y Z:       0.01 0.01 0.01 
  Offset X Y Z:             0 0 0 
  min X Y Z:                684766.4 5017773 0 
  max X Y Z:                684993.3 5018007 29.97 
  Variable length records:  void
  1. Failure: terrain works with knnidw (@test-terrain.R#16) ---------------------
  mean(diffZ) is not strictly less than 0.21. Difference: 0.000678
  
  
  [using universal kriging]
  2284747 bytes written
  testthat results ================================================================
  OK: 226 SKIPPED: 0 FAILED: 1
  1. Failure: terrain works with knnidw (@test-terrain.R#16) 
  
  Error: testthat unit tests failed
  Execution halted