Skip to content

Commit dd19428

Browse files
committed
style: styler (GHA)
1 parent d2dc2bf commit dd19428

File tree

1 file changed

+17
-13
lines changed

1 file changed

+17
-13
lines changed

tests/testthat/test-epix_slide.R

Lines changed: 17 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -805,23 +805,27 @@ test_that("`epix_slide` de-dupes labeling & value columns", {
805805
# Solely parroting back values without any new columns seems likely to be
806806
# nonsense (though this example would sort of act like a `distinct`
807807
# operation if we accepted it):
808-
expect_error(xx %>% epix_slide(~ .version, .new_col_name = "version"))
808+
expect_error(xx %>% epix_slide(~.version, .new_col_name = "version"))
809809

810810
# Deduping group label:
811811
# When comp is formula -> unpacked tibble:
812-
forecasts2a <- xx %>% group_by(geo_value) %>% epix_slide(~ tibble(
813-
geo_value = .group_key$geo_value,
814-
version = .version,
815-
time_value = .version + c(0, 7),
816-
value = 42
817-
))
812+
forecasts2a <- xx %>%
813+
group_by(geo_value) %>%
814+
epix_slide(~ tibble(
815+
geo_value = .group_key$geo_value,
816+
version = .version,
817+
time_value = .version + c(0, 7),
818+
value = 42
819+
))
818820
# When comp is data-masking:
819-
forecasts2b <- xx %>% group_by(geo_value) %>% epix_slide(
820-
geo_value = .group_key$geo_value,
821-
version = .version,
822-
time_value = .version + c(0, 7),
823-
value = 42
824-
)
821+
forecasts2b <- xx %>%
822+
group_by(geo_value) %>%
823+
epix_slide(
824+
geo_value = .group_key$geo_value,
825+
version = .version,
826+
time_value = .version + c(0, 7),
827+
value = 42
828+
)
825829
# Expected value:
826830
forecasts2ref <- tibble(
827831
geo_value = "ak",

0 commit comments

Comments
 (0)