Skip to content

Commit ce5b91f

Browse files
committed
style: styler (GHA)
1 parent d759628 commit ce5b91f

File tree

3 files changed

+10
-6
lines changed

3 files changed

+10
-6
lines changed

R/grouped_epi_archive.R

+3-2
Original file line numberDiff line numberDiff line change
@@ -272,9 +272,10 @@ epix_slide.grouped_epi_archive <- function(
272272
cli_abort(c("`new_col_name` must not be one of the grouping column name(s);
273273
`epix_slide()` uses these column name(s) to label what group
274274
each slide computation came from.",
275-
"i" = "{cli::qty(length(x$private$vars))} grouping column name{?s}
275+
"i" = "{cli::qty(length(x$private$vars))} grouping column name{?s}
276276
{?was/were} {format_chr_with_quotes(x$private$vars)}",
277-
"x" = "`new_col_name` was {format_chr_with_quotes(new_col_name)}"))
277+
"x" = "`new_col_name` was {format_chr_with_quotes(new_col_name)}"
278+
))
278279
}
279280
if (identical(new_col_name, "version")) {
280281
cli_abort('`new_col_name` must not be `"version"`; `epix_slide()` uses that column name to attach the `ref_version` associated with each slide computation') # nolint: line_length_linter

R/slide.R

+3-2
Original file line numberDiff line numberDiff line change
@@ -124,9 +124,10 @@ epi_slide <- function(x, f, ..., before = NULL, after = NULL, ref_time_values =
124124
cli_abort(c("`new_col_name` must not be one of the grouping column name(s);
125125
`epi_slide()` uses these column name(s) to label what group
126126
each slide computation came from.",
127-
"i" = "{cli::qty(length(group_vars(x)))} grouping column name{?s}
127+
"i" = "{cli::qty(length(group_vars(x)))} grouping column name{?s}
128128
{?was/were} {format_chr_with_quotes(group_vars(x))}",
129-
"x" = "`new_col_name` was {format_chr_with_quotes(new_col_name)}"))
129+
"x" = "`new_col_name` was {format_chr_with_quotes(new_col_name)}"
130+
))
130131
}
131132
if (identical(new_col_name, "time_value")) {
132133
cli_abort('`new_col_name` must not be `"time_value"`; `epi_slide()` uses that column name to attach the `ref_time_value` associated with each slide computation') # nolint: line_length_linter

tests/testthat/test-methods-epi_archive.R

+4-2
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,8 @@ test_that("epix_truncate_version_after returns the same groups as input grouped_
123123
})
124124

125125
test_that("group_vars works as expected", {
126-
expect_equal(ea2_data %>% as_epi_archive() %>% group_by(geo_value) %>% group_vars(),
127-
"geo_value")
126+
expect_equal(
127+
ea2_data %>% as_epi_archive() %>% group_by(geo_value) %>% group_vars(),
128+
"geo_value"
129+
)
128130
})

0 commit comments

Comments
 (0)