Skip to content

Commit e32b9ca

Browse files
dajmcdondshemetov
authored andcommitted
style: styler (GHA)
1 parent d0bdf11 commit e32b9ca

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

R/epi_df.R

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -172,8 +172,7 @@ NULL
172172
#'
173173
#' @export
174174
new_epi_df <- function(x = tibble::tibble(), geo_type, time_type, as_of,
175-
other_keys = character(0L), ..., subclass = character(0L)
176-
) {
175+
other_keys = character(0L), ..., subclass = character(0L)) {
177176
# Define metadata fields
178177
metadata <- list()
179178
metadata$geo_type <- geo_type

tests/testthat/test-epi_df.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ test_that("as_epi_df errors when additional_metadata is not a list", {
4141
)
4242
})
4343

44-
test_that("as_epi_df errors for non-character other_keys",{
44+
test_that("as_epi_df errors for non-character other_keys", {
4545
ex_input <- jhu_csse_county_level_subset %>%
4646
dplyr::filter(time_value > "2021-12-01", state_name == "Massachusetts") %>%
4747
dplyr::slice_tail(n = 6) %>%
@@ -50,7 +50,7 @@ test_that("as_epi_df errors for non-character other_keys",{
5050
state = rep("MA", 6),
5151
pol = rep(c("blue", "swing", "swing"), each = 2)
5252
)
53-
53+
5454
expect_error(
5555
as_epi_df(ex_input, other_keys = list()),
5656
"Must be of type 'character'"

tests/testthat/test-methods-epi_df.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ test_that("Subsetting drops & does not drop the epi_df class appropriately", {
8383

8484
test_that("When duplicate cols in subset should abort", {
8585
expect_error(toy_epi_df[, c(2, 2:3, 4, 4, 4)],
86-
"Duplicated column names: time_value, indic_var2",
86+
"Duplicated column names: time_value, indic_var2",
8787
fixed = TRUE
8888
)
8989
expect_error(toy_epi_df[1:4, c(1, 2:4, 1)],

0 commit comments

Comments
 (0)