Skip to content

Commit 093fac0

Browse files
committed
linting; var used in glue syntax not recognized
1 parent 42bda42 commit 093fac0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

R/model.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,11 +66,11 @@ print.EpiRange <- function(x, ...) {
6666
stopifnot(inherits(x, "EpiRange"))
6767

6868
if (nchar(x$from) == 8) {
69-
date_type <- "Days"
69+
date_type <- "Days" # nolint: object_usage_linter
7070
x$from <- as.Date(as.character(x$from), "%Y%m%d")
7171
x$to <- as.Date(as.character(x$to), "%Y%m%d")
7272
} else if (nchar(x$from) == 6) {
73-
date_type <- "Epiweeks"
73+
date_type <- "Epiweeks" # nolint: object_usage_linter
7474
x$from <- format(
7575
as.Date(as.character(x$from), "%Y%U"),
7676
"%Yw%U"

0 commit comments

Comments
 (0)