Skip to content

Commit 2ddc3d5

Browse files
committed
Updated km-compactify_rectify whilst dealing with conflicts.
Merge branch 'main' of https://github.com/cmu-delphi/epiprocess into km-compactify_rectify # Conflicts: # R/archive.R # tests/testthat/test-methods-epi_archive.R
2 parents a71c3fe + 59b04b8 commit 2ddc3d5

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

R/archive.R

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -407,8 +407,14 @@ epi_archive =
407407
})
408408
}
409409
cat("----------\n")
410+
if (length(self$DT$time_value) == 0 || all(is.na(self$DT$time_value))) {
411+
min_time = max_time = NA
412+
} else {
413+
min_time = Min(self$DT$time_value)
414+
max_time = Max(self$DT$time_value)
415+
}
410416
cat(sprintf("* %-14s = %s\n", "min time value",
411-
min(self$DT$time_value)))
417+
min_time))
412418
cat(sprintf("* %-14s = %s\n", "max time value",
413419
max(self$DT$time_value)))
414420
cat(sprintf("* %-14s = %s\n", "first version with update",

0 commit comments

Comments
 (0)