Skip to content

Commit b44eb11

Browse files
author
Tim Appelhans
committed
delete SpatialPolygons tests
1 parent 4541537 commit b44eb11

File tree

1 file changed

+0
-40
lines changed

1 file changed

+0
-40
lines changed

inst/tinytest/test-mapview.R

Lines changed: 0 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -331,46 +331,6 @@ expect_true(inherits(map@map, "leaflet"))
331331
expect_equal(typeof(map@object), "list")
332332
expect_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 -----
375335
if (utils::packageVersion("stars") >= "0.4-1") {
376336
library(stars)

0 commit comments

Comments
 (0)