Running ‘testthat.R’ [5s/10s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(leaflet)
  > 
  > test_check("leaflet")
  sf data.frame 
  sfc_MULTIPOLYGON sfc 
  XY MULTIPOLYGON sfg 
  XY POLYGON sfg 
  SpatialPolygonsDataFrame 
  SpatialPolygons 
  Polygons 
  Polygon 
  sf data.frame 
  sfc_LINESTRING sfc 
  XY LINESTRING sfg 
  XY MULTILINESTRING sfg 
  SpatialLinesDataFrame 
  SpatialLines 
  Lines 
  Line 
  [ FAIL 2 | WARN 0 | SKIP 0 | PASS 805 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Failure (test-normalize-2.R:106:3): normalize ───────────────────────────────
  `m1` not equal to `m2`.
  Component "x": Component "calls": Component 1: Component 2: Component 1: Component 1: Component 1: Component 1: Component 1: Mean relative difference: 2
  Component "x": Component "calls": Component 1: Component 2: Component 1: Component 1: Component 1: Component 1: Component 2: Mean relative difference: 2
  Component "x": Component "calls": Component 1: Component 2: Component 1: Component 1: Component 1: Component 2: Component 1: Mean relative difference: 2
  Component "x": Component "calls": Component 1: Component 2: Component 1: Component 1: Component 1: Component 2: Component 2: Mean relative difference: 2
  Component "x": Component "calls": Component 1: Component 2: Component 1: Component 1: Component 2: Component 1: Component 1: Mean relative difference: 0.4166667
  Component "x": Component "calls": Component 1: Component 2: Component 1: Component 1: Component 2: Component 1: Component 2: Mean relative difference: 0.3846154
  Component "x": Component "calls": Component 1: Component 2: Component 1: Component 1: Component 2: Component 2: Component 1: Mean relative difference: 0.2040816
  Component "x": Component "calls": Component 1: Component 2: Component 1: Component 1: Component 2: Component 2: Component 2: Mean relative difference: 0.2040816
  Component "x": Component "calls": Component 1: Component 2: Component 1: Component 1: Component 2: Component 3: Component 1: Mean relative difference: 0.09501188
  ...
  Backtrace:
      ▆
   1. └─leaflet expect_maps_equal(l101, l102) at test-normalize-2.R:106:2
   2.   └─testthat::expect_equal(m1, m2, check.environment = FALSE) at test-normalize-2.R:5:2
  ── Failure (test-normalize-2.R:109:3): normalize ───────────────────────────────
  `m1` not equal to `m2`.
  Component "x": Component "calls": Component 1: Component 2: Component 1: Component 1: Component 1: Component 1: Component 1: Mean relative difference: 2
  Component "x": Component "calls": Component 1: Component 2: Component 1: Component 1: Component 1: Component 1: Component 2: Mean relative difference: 2
  Component "x": Component "calls": Component 1: Component 2: Component 1: Component 1: Component 1: Component 2: Component 1: Mean relative difference: 2
  Component "x": Component "calls": Component 1: Component 2: Component 1: Component 1: Component 1: Component 2: Component 2: Mean relative difference: 2
  Component "x": Component "calls": Component 1: Component 2: Component 1: Component 1: Component 2: Component 1: Component 1: Mean relative difference: 0.4166667
  Component "x": Component "calls": Component 1: Component 2: Component 1: Component 1: Component 2: Component 1: Component 2: Mean relative difference: 0.3846154
  Component "x": Component "calls": Component 1: Component 2: Component 1: Component 1: Component 2: Component 2: Component 1: Mean relative difference: 0.2040816
  Component "x": Component "calls": Component 1: Component 2: Component 1: Component 1: Component 2: Component 2: Component 2: Mean relative difference: 0.2040816
  Component "x": Component "calls": Component 1: Component 2: Component 1: Component 1: Component 2: Component 3: Component 1: Mean relative difference: 0.09501188
  ...
  Backtrace:
      ▆
   1. └─leaflet expect_maps_equal(l103, l104) at test-normalize-2.R:109:2
   2.   └─testthat::expect_equal(m1, m2, check.environment = FALSE) at test-normalize-2.R:5:2
  
  [ FAIL 2 | WARN 0 | SKIP 0 | PASS 805 ]
  Error: Test failures
  Execution halted