Running 'testthat.R' [6s/7s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(leaflet)
  > 
  > test_check("leaflet")
  sf data.frame 
  -- Warning (test-normalize-2.R:24:3): normalize --------------------------------
  sf layer has inconsistent datum (+proj=longlat +ellps=WGS84 +towgs84=0,0,0,0,0,0,0 +no_defs).
  Need '+proj=longlat +datum=WGS84'
  
  sfc_MULTIPOLYGON sfc 
  -- Warning (test-normalize-2.R:25:3): normalize --------------------------------
  sf layer has inconsistent datum (+proj=longlat +ellps=WGS84 +towgs84=0,0,0,0,0,0,0 +no_defs).
  Need '+proj=longlat +datum=WGS84'
  
  XY MULTIPOLYGON sfg 
  XY POLYGON sfg 
  SpatialPolygonsDataFrame 
  SpatialPolygons 
  Polygons 
  Polygon 
  -- FAILURE (test-normalize-2.R:33:3): normalize --------------------------------
  `m1` not equal to `m2`.
  Component "preRenderHook": Component "data": names for target but not for current
  Component "preRenderHook": Component "data": Attributes: < Names: 3 string mismatches >
  Component "preRenderHook": Component "data": Attributes: < Length mismatch: comparison on first 4 components >
  Component "preRenderHook": Component "data": Attributes: < Component 1: 'current' is not a factor >
  Component "preRenderHook": Component "data": Attributes: < Component "class": 2 string mismatches >
  Component "preRenderHook": Component "data": Attributes: < Component 3: Modes: numeric, list >
  Component "preRenderHook": Component "data": Attributes: < Component 3: names for current but not for target >
  Component "preRenderHook": Component "data": Attributes: < Component 3: Attributes: < target is NULL, current is list > >
  Component "preRenderHook": Component "data": Attributes: < Component 3: target is numeric, current is crs >
  ...
  
  -- FAILURE (test-normalize-2.R:34:3): normalize --------------------------------
  `m1` not equal to `m2`.
  Component "preRenderHook": Component "data": Attributes: < Component "class": 1 string mismatch >
  Component "preRenderHook": Component "data": Component 1: Modes: list, numeric
  Component "preRenderHook": Component "data": Component 1: Lengths: 1, 4028
  Component "preRenderHook": Component "data": Component 1: Attributes: < target is NULL, current is list >
  Component "preRenderHook": Component "data": Component 1: current is not list-like
  Component "preRenderHook": Component "map": Component "x": Attributes: < Component "leafletData": Attributes: < Component "class": 1 string mismatch > >
  Component "preRenderHook": Component "map": Component "x": Attributes: < Component "leafletData": Component 1: Modes: list, numeric >
  Component "preRenderHook": Component "map": Component "x": Attributes: < Component "leafletData": Component 1: Lengths: 1, 4028 >
  Component "preRenderHook": Component "map": Component "x": Attributes: < Component "leafletData": Component 1: Attributes: < target is NULL, current is list > >
  ...
  
  -- FAILURE (test-normalize-2.R:35:3): normalize --------------------------------
  `m1` not equal to `m2`.
  Component "preRenderHook": Component "data": Modes: list, S4
  Component "preRenderHook": Component "data": Lengths: 14, 26
  Component "preRenderHook": Component "data": Names: Lengths (14, 13) differ (string compare on first 13)
  Component "preRenderHook": Component "data": Attributes: < Names: 3 string mismatches >
  Component "preRenderHook": Component "data": Attributes: < Length mismatch: comparison on first 4 components >
  Component "preRenderHook": Component "data": Attributes: < Component 1: 'current' is not a factor >
  Component "preRenderHook": Component "data": Attributes: < Component "class": Attributes: < target is NULL, current is list > >
  Component "preRenderHook": Component "data": Attributes: < Component "class": Lengths (2, 1) differ (string compare on first 1) >
  Component "preRenderHook": Component "data": Attributes: < Component "class": 1 string mismatch >
  ...
  
  -- Warning (test-normalize-2.R:39:3): normalize --------------------------------
  GDAL Message 1: +init=epsg:XXXX syntax is deprecated. It might return a CRS with a non-EPSG compliant axis order.
  
  sf data.frame 
  -- Warning (test-normalize-2.R:46:3): normalize --------------------------------
  sf layer has inconsistent datum (+proj=longlat +ellps=WGS84 +towgs84=0,0,0,0,0,0,0 +no_defs).
  Need '+proj=longlat +datum=WGS84'
  
  sfc_LINESTRING sfc 
  -- Warning (test-normalize-2.R:47:3): normalize --------------------------------
  sf layer has inconsistent datum (+proj=longlat +ellps=WGS84 +towgs84=0,0,0,0,0,0,0 +no_defs).
  Need '+proj=longlat +datum=WGS84'
  
  XY LINESTRING sfg 
  XY MULTILINESTRING sfg 
  SpatialLinesDataFrame 
  SpatialLines 
  Lines 
  Line 
  -- FAILURE (test-normalize-2.R:55:3): normalize --------------------------------
  `m1` not equal to `m2`.
  Component "preRenderHook": Component "data": names for target but not for current
  Component "preRenderHook": Component "data": Attributes: < Names: 3 string mismatches >
  Component "preRenderHook": Component "data": Attributes: < Length mismatch: comparison on first 4 components >
  Component "preRenderHook": Component "data": Attributes: < Component 1: 'current' is not a factor >
  Component "preRenderHook": Component "data": Attributes: < Component "class": 2 string mismatches >
  Component "preRenderHook": Component "data": Attributes: < Component 3: Modes: numeric, list >
  Component "preRenderHook": Component "data": Attributes: < Component 3: names for current but not for target >
  Component "preRenderHook": Component "data": Attributes: < Component 3: Attributes: < target is NULL, current is list > >
  Component "preRenderHook": Component "data": Attributes: < Component 3: target is numeric, current is crs >
  ...
  
  -- FAILURE (test-normalize-2.R:56:3): normalize --------------------------------
  `m1` not equal to `m2`.
  Component "preRenderHook": Component "data": Modes: list, S4
  Component "preRenderHook": Component "data": Lengths: 4, 24
  Component "preRenderHook": Component "data": Names: Lengths (4, 3) differ (string compare on first 3)
  Component "preRenderHook": Component "data": Attributes: < Names: 3 string mismatches >
  Component "preRenderHook": Component "data": Attributes: < Length mismatch: comparison on first 4 components >
  Component "preRenderHook": Component "data": Attributes: < Component 1: 'current' is not a factor >
  Component "preRenderHook": Component "data": Attributes: < Component "class": Attributes: < target is NULL, current is list > >
  Component "preRenderHook": Component "data": Attributes: < Component "class": Lengths (2, 1) differ (string compare on first 1) >
  Component "preRenderHook": Component "data": Attributes: < Component "class": 1 string mismatch >
  ...
  
  -- FAILURE (test-normalize-2.R:57:3): normalize --------------------------------
  `m1` not equal to `m2`.
  Component "preRenderHook": Component "data": Modes: list, S4
  Component "preRenderHook": Component "data": Lengths: 4, 24
  Component "preRenderHook": Component "data": Names: Lengths (4, 24) differ (string compare on first 4)
  Component "preRenderHook": Component "data": Names: 4 string mismatches
  Component "preRenderHook": Component "data": Attributes: < Names: 3 string mismatches >
  Component "preRenderHook": Component "data": Attributes: < Component 1: 'current' is not a factor >
  Component "preRenderHook": Component "data": Attributes: < Component "class": Attributes: < target is NULL, current is list > >
  Component "preRenderHook": Component "data": Attributes: < Component "class": Lengths (2, 1) differ (string compare on first 1) >
  Component "preRenderHook": Component "data": Attributes: < Component "class": 1 string mismatch >
  ...
  
  -- FAILURE (test-normalize-2.R:58:3): normalize --------------------------------
  `m1` not equal to `m2`.
  Component "preRenderHook": Component "data": Modes: numeric, S4
  Component "preRenderHook": Component "data": Lengths: 22, 1
  Component "preRenderHook": Component "data": Attributes: < Names: 2 string mismatches >
  Component "preRenderHook": Component "data": Attributes: < Length mismatch: comparison on first 2 components >
  Component "preRenderHook": Component "data": Attributes: < Component 1: Lengths (3, 1) differ (string compare on first 1) >
  Component "preRenderHook": Component "data": Attributes: < Component 1: 1 string mismatch >
  Component "preRenderHook": Component "data": Attributes: < Component 2: Modes: numeric, list >
  Component "preRenderHook": Component "data": Attributes: < Component 2: Lengths: 2, 1 >
  Component "preRenderHook": Component "data": Attributes: < Component 2: target is numeric, current is list >
  ...
  
  -- FAILURE (test-normalize-2.R:59:3): normalize --------------------------------
  `m1` not equal to `m2`.
  Component "preRenderHook": Component "data": Modes: numeric, S4
  Component "preRenderHook": Component "data": Lengths: 22, 1
  Component "preRenderHook": Component "data": Attributes: < Names: 1 string mismatch >
  Component "preRenderHook": Component "data": Attributes: < Component "class": Attributes: < target is NULL, current is list > >
  Component "preRenderHook": Component "data": Attributes: < Component "class": Lengths (3, 1) differ (string compare on first 1) >
  Component "preRenderHook": Component "data": Attributes: < Component "class": 1 string mismatch >
  Component "preRenderHook": Component "data": Attributes: < Component 2: Lengths: 2, 22 >
  Component "preRenderHook": Component "data": Attributes: < Component 2: Attributes: < target is NULL, current is list > >
  Component "preRenderHook": Component "data": Attributes: < Component 2: target is numeric, current is matrix >
  ...
  
  -- Warning (test-normalize-2.R:68:3): normalize --------------------------------
  sf layer has inconsistent datum (+proj=longlat +ellps=WGS84 +towgs84=0,0,0,0,0,0,0 +no_defs).
  Need '+proj=longlat +datum=WGS84'
  
  -- Warning (test-normalize-2.R:69:3): normalize --------------------------------
  sf layer has inconsistent datum (+proj=longlat +ellps=WGS84 +towgs84=0,0,0,0,0,0,0 +no_defs).
  Need '+proj=longlat +datum=WGS84'
  
  -- FAILURE (test-normalize-2.R:106:3): normalize -------------------------------
  `m1` not equal to `m2`.
  Component "preRenderHook": Component "data": Modes: S4, list
  Component "preRenderHook": Component "data": Names: 1 string mismatch
  Component "preRenderHook": Component "data": Attributes: < Names: 3 string mismatches >
  Component "preRenderHook": Component "data": Attributes: < Length mismatch: comparison on first 4 components >
  Component "preRenderHook": Component "data": Attributes: < Component 1: Lengths: 4, 0 >
  Component "preRenderHook": Component "data": Attributes: < Component 1: Attributes: < Names: 2 string mismatches > >
  Component "preRenderHook": Component "data": Attributes: < Component 1: Attributes: < Length mismatch: comparison on first 2 components > >
  Component "preRenderHook": Component "data": Attributes: < Component 1: Attributes: < Component 1: Modes: numeric, character > >
  Component "preRenderHook": Component "data": Attributes: < Component 1: Attributes: < Component 1: Lengths: 2, 1 > >
  ...
  
  -- FAILURE (test-normalize-2.R:109:3): normalize -------------------------------
  `m1` not equal to `m2`.
  Component "preRenderHook": Component "data": Modes: S4, list
  Component "preRenderHook": Component "data": Names: 1 string mismatch
  Component "preRenderHook": Component "data": Attributes: < Names: 3 string mismatches >
  Component "preRenderHook": Component "data": Attributes: < Length mismatch: comparison on first 4 components >
  Component "preRenderHook": Component "data": Attributes: < Component 1: Lengths: 4, 0 >
  Component "preRenderHook": Component "data": Attributes: < Component 1: Attributes: < Names: 2 string mismatches > >
  Component "preRenderHook": Component "data": Attributes: < Component 1: Attributes: < Length mismatch: comparison on first 2 components > >
  Component "preRenderHook": Component "data": Attributes: < Component 1: Attributes: < Component 1: Modes: numeric, character > >
  Component "preRenderHook": Component "data": Attributes: < Component 1: Attributes: < Component 1: Lengths: 2, 1 > >
  ...
  
  -- FAILURE (test-normalize-2.R:123:3): normalize -------------------------------
  `m1` not equal to `m2`.
  Component "preRenderHook": Component "data": Modes: S4, list
  Component "preRenderHook": Component "data": Names: 1 string mismatch
  Component "preRenderHook": Component "data": Attributes: < Names: 3 string mismatches >
  Component "preRenderHook": Component "data": Attributes: < Component 1: Lengths: 4, 0 >
  Component "preRenderHook": Component "data": Attributes: < Component 1: Attributes: < Names: 2 string mismatches > >
  Component "preRenderHook": Component "data": Attributes: < Component 1: Attributes: < Length mismatch: comparison on first 2 components > >
  Component "preRenderHook": Component "data": Attributes: < Component 1: Attributes: < Component 1: Modes: numeric, character > >
  Component "preRenderHook": Component "data": Attributes: < Component 1: Attributes: < Component 1: Lengths: 2, 1 > >
  Component "preRenderHook": Component "data": Attributes: < Component 1: Attributes: < Component 1: target is numeric, current is character > >
  ...
  
  == testthat results  ===========================================================
  Warning (test-normalize-2.R:24:3): normalize
  Warning (test-normalize-2.R:25:3): normalize
  FAILURE (test-normalize-2.R:33:3): normalize
  FAILURE (test-normalize-2.R:34:3): normalize
  FAILURE (test-normalize-2.R:35:3): normalize
  Warning (test-normalize-2.R:39:3): normalize
  Warning (test-normalize-2.R:46:3): normalize
  Warning (test-normalize-2.R:47:3): normalize
  FAILURE (test-normalize-2.R:55:3): normalize
  FAILURE (test-normalize-2.R:56:3): normalize
  FAILURE (test-normalize-2.R:57:3): normalize
  FAILURE (test-normalize-2.R:58:3): normalize
  FAILURE (test-normalize-2.R:59:3): normalize
  Warning (test-normalize-2.R:68:3): normalize
  Warning (test-normalize-2.R:69:3): normalize
  FAILURE (test-normalize-2.R:106:3): normalize
  FAILURE (test-normalize-2.R:109:3): normalize
  FAILURE (test-normalize-2.R:123:3): normalize
  
  [ FAIL 11 | WARN 7 | SKIP 0 | PASS 796 ]
  Error: Test failures
  Execution halted