Skip to content

Commit 70d9f55

Browse files
committed
fix: ggplot2::ggsave
1 parent e530cca commit 70d9f55

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/testthat/test-autoplot.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,15 @@ test_that("autoplot snapshots", {
1818
wf <- epi_workflow(r, parsnip::linear_reg(), f) %>% fit(jhu)
1919
p <- autoplot(wf)
2020
withr::with_file("autoplot.png", {
21-
ggsave("autoplot.png", p)
21+
ggplot2::ggsave("autoplot.png", p)
2222
expect_snapshot_file("autoplot.png")
2323
})
2424

2525
latest <- jhu %>% dplyr::filter(time_value >= max(time_value) - 14)
2626
preds <- predict(wf, latest)
2727
p <- autoplot(wf, preds, .max_facets = 4)
2828
withr::with_file("autoplot2.png", {
29-
ggsave("autoplot2.png", p)
29+
ggplot2::ggsave("autoplot2.png", p)
3030
expect_snapshot_file("autoplot2.png")
3131
})
3232
})

0 commit comments

Comments
 (0)