Skip to content

Commit

Permalink
Ignore some simple lint for styling
Browse files Browse the repository at this point in the history
  • Loading branch information
aleksanderbl29 committed Dec 10, 2024
1 parent 597721d commit 51b2567
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/dst_date_parse.R
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,13 @@ dst_date_parse <- function(dst_date) {
# nolint start
all(stringr::str_detect(dst_date, "^[0-9]{4}U(0[1-9]|[1-4][0-9]|5[0-2])$")) &&
all(stringr::str_length(string = dst_date) == 7)
# nolint end
) {
) {
# Weekly format
# Find year and and week
year <- lubridate::ymd(paste0(
stringr::str_sub(dst_date, start = 1L, end = 4L),
"-01-01"))
# nolint end

week <- stringr::str_sub(dst_date, start = -2L)

Expand Down

0 comments on commit 51b2567

Please sign in to comment.