Skip to content

Commit 25b28c9

Browse files
committed
update visual tests
1 parent 0906548 commit 25b28c9

10 files changed

+11
-9
lines changed

inst/docker/Dockerfile.vtest

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ RUN R -e "install.packages('testthat')"
9595
ARG CRANCACHE=1
9696
RUN R -e "update.packages(ask=FALSE)"
9797
RUN R -e "remotes::install_github('r-lib/vdiffr')"
98+
RUN R -e "install.packages('rnaturalearth')"
9899

99100
# install any new dependencies, then either manage cases (the default) or run tests
100101
# note the workaround to get docker to run a proper exit status when there are testthat errors

tests/figs/abline/cookbook-axes-multiple-abline.svg

Lines changed: 1 addition & 1 deletion
Loading

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

Lines changed: 1 addition & 0 deletions
Loading

tests/figs/plotly/plotly-bar-inference.svg

Lines changed: 1 addition & 1 deletion
Loading

tests/figs/plotly/plotly-time-series-summary.svg

Lines changed: 1 addition & 1 deletion
Loading

tests/figs/subplot/plotly-subplot-shareboth.svg

Lines changed: 1 addition & 1 deletion
Loading

tests/figs/subplot/plotly-subplot-simple.svg

Lines changed: 1 addition & 1 deletion
Loading

tests/figs/tooltip/group-lines-hovertext.svg

Lines changed: 1 addition & 1 deletion
Loading

tests/figs/tooltip/hovertext-display.svg

Lines changed: 1 addition & 1 deletion
Loading

tests/testthat/test-ggplot-sf.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ test_that("resolves overlapping axis ticks", {
115115
world <- rnaturalearth::ne_countries(returnclass = "sf")
116116

117117
# filter the world sf object down to canada
118-
canada <- rnaturalearth::filter(world, name == "Canada")
118+
canada <- dplyr::filter(world, name == "Canada")
119119
# coerce cities lat/long data to an official sf object
120120
cities <- sf::st_as_sf(
121121
maps::canada.cities,
@@ -134,5 +134,5 @@ test_that("resolves overlapping axis ticks", {
134134
p <- ggplot() +
135135
geom_sf(data = canada) +
136136
geom_sf(data = cities, aes(size = pop), color = "red", alpha = 0.3)
137-
ggplotly(p)
137+
expect_doppelganger_built(ggplotly(p), "sf-axis-ticks")
138138
})

0 commit comments

Comments
 (0)