@@ -92,7 +92,7 @@ test_that("epi_archives are correctly instantiated with a variety of data types"
9292 expect_equal(key(ea1 $ DT ), c(" geo_value" , " time_value" , " version" ))
9393
9494 ea2 <- as_epi_archive(df , other_keys = " value" , compactify = FALSE )
95- expect_equal(key(ea2 $ DT ), c(" geo_value" , " time_value " , " value " , " version" ))
95+ expect_equal(key(ea2 $ DT ), c(" geo_value" , " value " , " time_value " , " version" ))
9696
9797 # Tibble
9898 tib <- tibble :: tibble(df , code = " x" )
@@ -101,7 +101,7 @@ test_that("epi_archives are correctly instantiated with a variety of data types"
101101 expect_equal(key(ea3 $ DT ), c(" geo_value" , " time_value" , " version" ))
102102
103103 ea4 <- as_epi_archive(tib , other_keys = " code" , compactify = FALSE )
104- expect_equal(key(ea4 $ DT ), c(" geo_value" , " time_value " , " code " , " version" ))
104+ expect_equal(key(ea4 $ DT ), c(" geo_value" , " code " , " time_value " , " version" ))
105105
106106 # Keyed data.table
107107 kdt <- data.table :: data.table(
@@ -119,7 +119,7 @@ test_that("epi_archives are correctly instantiated with a variety of data types"
119119
120120 ea6 <- as_epi_archive(kdt , other_keys = " value" , compactify = FALSE )
121121 # Mismatched keys, but the one from as_epi_archive overrides
122- expect_equal(key(ea6 $ DT ), c(" geo_value" , " time_value " , " value " , " version" ))
122+ expect_equal(key(ea6 $ DT ), c(" geo_value" , " value " , " time_value " , " version" ))
123123
124124 # Unkeyed data.table
125125 udt <- data.table :: data.table(
@@ -134,7 +134,7 @@ test_that("epi_archives are correctly instantiated with a variety of data types"
134134 expect_equal(key(ea7 $ DT ), c(" geo_value" , " time_value" , " version" ))
135135
136136 ea8 <- as_epi_archive(udt , other_keys = " code" , compactify = FALSE )
137- expect_equal(key(ea8 $ DT ), c(" geo_value" , " time_value " , " code " , " version" ))
137+ expect_equal(key(ea8 $ DT ), c(" geo_value" , " code " , " time_value " , " version" ))
138138
139139 # epi_df
140140 edf1 <- cases_deaths_subset %> %
@@ -145,7 +145,7 @@ test_that("epi_archives are correctly instantiated with a variety of data types"
145145 expect_equal(key(ea9 $ DT ), c(" geo_value" , " time_value" , " version" ))
146146
147147 ea10 <- as_epi_archive(edf1 , other_keys = " code" , compactify = FALSE )
148- expect_equal(key(ea10 $ DT ), c(" geo_value" , " time_value " , " code " , " version" ))
148+ expect_equal(key(ea10 $ DT ), c(" geo_value" , " code " , " time_value " , " version" ))
149149
150150 # Keyed epi_df
151151 edf2 <- data.frame (
@@ -164,7 +164,7 @@ test_that("epi_archives are correctly instantiated with a variety of data types"
164164 expect_equal(key(ea11 $ DT ), c(" geo_value" , " time_value" , " version" ))
165165
166166 ea12 <- as_epi_archive(edf2 , other_keys = " misc" , compactify = FALSE )
167- expect_equal(key(ea12 $ DT ), c(" geo_value" , " time_value " , " misc " , " version" ))
167+ expect_equal(key(ea12 $ DT ), c(" geo_value" , " misc " , " time_value " , " version" ))
168168})
169169
170170test_that(" `epi_archive` rejects nonunique keys" , {
0 commit comments