We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e530cca commit 70d9f55Copy full SHA for 70d9f55
tests/testthat/test-autoplot.R
@@ -18,15 +18,15 @@ test_that("autoplot snapshots", {
18
wf <- epi_workflow(r, parsnip::linear_reg(), f) %>% fit(jhu)
19
p <- autoplot(wf)
20
withr::with_file("autoplot.png", {
21
- ggsave("autoplot.png", p)
+ ggplot2::ggsave("autoplot.png", p)
22
expect_snapshot_file("autoplot.png")
23
})
24
25
latest <- jhu %>% dplyr::filter(time_value >= max(time_value) - 14)
26
preds <- predict(wf, latest)
27
p <- autoplot(wf, preds, .max_facets = 4)
28
withr::with_file("autoplot2.png", {
29
- ggsave("autoplot2.png", p)
+ ggplot2::ggsave("autoplot2.png", p)
30
expect_snapshot_file("autoplot2.png")
31
32
0 commit comments