We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ef45cf1 commit 8bb37c4Copy full SHA for 8bb37c4
R/archive.R
@@ -413,10 +413,8 @@ epi_archive =
413
min_time = Min(self$DT$time_value)
414
max_time = Max(self$DT$time_value)
415
}
416
- cat(sprintf("* %-14s = %s\n", "min time value",
417
- min_time))
418
- cat(sprintf("* %-14s = %s\n", "max time value",
419
- max_time))
+ cat(sprintf("* %-14s = %s\n", "min time value", min_time))
+ cat(sprintf("* %-14s = %s\n", "max time value", max_time))
420
cat(sprintf("* %-14s = %s\n", "first version with update",
421
min(self$DT$version)))
422
cat(sprintf("* %-14s = %s\n", "last version with update",
tests/testthat/test-methods-epi_archive.R
@@ -28,16 +28,16 @@ test_that("as_of properly grabs the data and doesn't mutate key",{
28
29
ea2 = tibble::tribble(
30
~geo_value, ~time_value, ~version, ~cases,
31
- "ca", "2020-06-01", "2020-06-01", 1,
32
- "ca", "2020-06-01", "2020-06-02", 2,
+ "ca", "2020-06-01", "2020-06-01", 1,
+ "ca", "2020-06-01", "2020-06-02", 2,
33
#
34
- "ca", "2020-06-02", "2020-06-02", 0,
35
- "ca", "2020-06-02", "2020-06-03", 1,
36
- "ca", "2020-06-02", "2020-06-04", 2,
+ "ca", "2020-06-02", "2020-06-02", 0,
+ "ca", "2020-06-02", "2020-06-03", 1,
+ "ca", "2020-06-02", "2020-06-04", 2,
37
38
- "ca", "2020-06-03", "2020-06-03", 1,
+ "ca", "2020-06-03", "2020-06-03", 1,
39
40
- "ca", "2020-06-04", "2020-06-04", 4,
+ "ca", "2020-06-04", "2020-06-04", 4,
41
) %>%
42
dplyr::mutate(dplyr::across(c(time_value, version), as.Date)) %>%
43
as_epi_archive()
0 commit comments