From 3d59bc4586c29804c314900c13dc4f3b9aded5e4 Mon Sep 17 00:00:00 2001 From: Carl Suster Date: Fri, 10 Jan 2025 12:09:31 +1100 Subject: [PATCH] Fix broken test --- tests/testthat/test-stat_bin_location.R | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/testthat/test-stat_bin_location.R b/tests/testthat/test-stat_bin_location.R index f4544ef..c5a213d 100644 --- a/tests/testthat/test-stat_bin_location.R +++ b/tests/testthat/test-stat_bin_location.R @@ -4,7 +4,7 @@ run_stat_bin_location <- function(data, ..., .x.scale = list()) { rlang::inject(ggplot2::scale_x_date(!!!.x.scale)) + stat_bin_location(...) - layer_data(plot) + ggplot2::layer_data(plot) } s2d <- function(x) as.numeric(as.Date(x))