Skip to content

Commit 07f9472

Browse files
committed
style: styler (GHA)
1 parent 074ed4a commit 07f9472

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

R/methods-epi_archive.R

+8-6
Original file line numberDiff line numberDiff line change
@@ -126,12 +126,14 @@ epix_as_of <- function(x, version, min_time_value = -Inf, all_versions = FALSE,
126126
# to avoid time_value > .min_time_value, which is NA for `yearmonth`.
127127
x$DT[version <= .version, ]
128128
} else {
129-
x$DT[time_value >= .min_time_value & version <= .version, ]
130-
} %>% # nolint: object_usage_linter
131-
unique(by = c("geo_value", "time_value", other_keys), fromLast = TRUE) %>%
132-
tibble::as_tibble() %>%
133-
dplyr::select(-"version") %>%
134-
as_epi_df(as_of = version, other_keys = other_keys)
129+
{
130+
x$DT[time_value >= .min_time_value & version <= .version, ]
131+
} %>% # nolint: object_usage_linter
132+
unique(by = c("geo_value", "time_value", other_keys), fromLast = TRUE) %>%
133+
tibble::as_tibble() %>%
134+
dplyr::select(-"version") %>%
135+
as_epi_df(as_of = version, other_keys = other_keys)
136+
}
135137

136138
return(as_of_epi_df)
137139
}

0 commit comments

Comments
 (0)