@@ -331,46 +331,6 @@ expect_true(inherits(map@map, "leaflet"))
331331expect_equal(typeof(map @ object ), " list" )
332332expect_true(inherits(map @ object [[1 ]], " sfc" ))
333333
334- # ## SpatialPolygons -----
335- library(sp )
336- library(leaflet )
337-
338- # # mapview
339- map = mapview(as(gadmCHE , " SpatialPolygons" ))
340-
341- expect_true(inherits(map , " mapview" ))
342- expect_true(inherits(map @ map , " leaflet" ))
343- expect_equal(typeof(map @ object ), " list" )
344- expect_true(inherits(map @ object [[1 ]], " sfc" ))
345-
346- # # mapView
347- map = mapView(as(gadmCHE , " SpatialPolygons" ))
348-
349- expect_true(inherits(map , " mapview" ))
350- expect_true(inherits(map @ map , " leaflet" ))
351- expect_equal(typeof(map @ object ), " list" )
352- expect_true(inherits(map @ object [[1 ]], " sfc" ))
353-
354- # ## SpatialPolygonsDataFrame -----
355- library(sp )
356- library(leaflet )
357-
358- # # mapview
359- map = mapview(gadmCHE )
360-
361- expect_true(inherits(map , " mapview" ))
362- expect_true(inherits(map @ map , " leaflet" ))
363- expect_equal(typeof(map @ object ), " list" )
364- expect_true(inherits(map @ object [[1 ]], " sfc" ))
365-
366- # # mapView
367- map = mapView(gadmCHE )
368-
369- expect_true(inherits(map , " mapview" ))
370- expect_true(inherits(map @ map , " leaflet" ))
371- expect_equal(typeof(map @ object ), " list" )
372- expect_true(inherits(map @ object [[1 ]], " sfc" ))
373-
374334# ## stars -----
375335if (utils :: packageVersion(" stars" ) > = " 0.4-1" ) {
376336 library(stars )
0 commit comments