Skip to content

Commit 94d18b8

Browse files
authored
Use new function argument names for stat_summary in tests (#3554)
1 parent 10fa001 commit 94d18b8

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

tests/testthat/test-facet-.r

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -180,11 +180,11 @@ test_that("shrink parameter affects scaling", {
180180
expect_equal(r1$x[[1]], c(1, 1))
181181
expect_equal(r1$y[[1]], c(1, 3))
182182

183-
l2 <- ggplot(df, aes(1, y)) + stat_summary(fun.y = "mean")
183+
l2 <- ggplot(df, aes(1, y)) + stat_summary(fun = "mean")
184184
r2 <- pranges(l2)
185185
expect_equal(r2$y[[1]], c(2, 2))
186186

187-
l3 <- ggplot(df, aes(1, y)) + stat_summary(fun.y = "mean") +
187+
l3 <- ggplot(df, aes(1, y)) + stat_summary(fun = "mean") +
188188
facet_null(shrink = FALSE)
189189
r3 <- pranges(l3)
190190
expect_equal(r3$y[[1]], c(1, 3))

tests/testthat/test-stat-sum.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ test_that("summaries are drawn correctly", {
4949
expect_doppelganger("summary with color and lines",
5050
ggplot(mtcars, aes(x = cyl, y = mpg, colour = factor(vs))) +
5151
geom_point() +
52-
stat_summary(fun.y = mean, geom = "line", size = 2)
52+
stat_summary(fun = mean, geom = "line", size = 2)
5353
)
5454
expect_doppelganger("summary with crossbars, no grouping",
5555
ggplot(mtcars, aes(x = cyl, y = mpg)) +

0 commit comments

Comments
 (0)