Skip to content

Commit 33fc723

Browse files
committed
remove rnaturalearth dependency in tests
1 parent 25b28c9 commit 33fc723

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

tests/figs/geom-sf/sf-axis-ticks.svg

Lines changed: 1 addition & 1 deletion
Loading

tests/testthat/test-ggplot-sf.R

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -109,13 +109,12 @@ test_that("works with a blank theme", {
109109

110110
test_that("resolves overlapping axis ticks", {
111111
skip_if_not_installed("sf")
112-
skip_if_not_installed("rnaturalearth")
113112
skip_if_not_installed("maps")
114113

115-
world <- rnaturalearth::ne_countries(returnclass = "sf")
114+
world <- sf::st_as_sf(maps::map('world', plot = FALSE, fill = TRUE))
116115

117116
# filter the world sf object down to canada
118-
canada <- dplyr::filter(world, name == "Canada")
117+
canada <- dplyr::filter(world, ID == "Canada")
119118
# coerce cities lat/long data to an official sf object
120119
cities <- sf::st_as_sf(
121120
maps::canada.cities,

0 commit comments

Comments
 (0)