Skip to content

Commit

Permalink
fix: disable check in filter_holidays()
Browse files Browse the repository at this point in the history
  • Loading branch information
ahasverus committed Apr 15, 2024
1 parent d2e8ec6 commit 55cf0ba
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions R/filter_holidays.R
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,10 @@ filter_holidays <- function(data, types) {
stop("Argument 'types' must be a character", call. = FALSE)
}

if (any(!(types %in% data$"type"))) {
stop("Some holiday types in 'types' are missing from 'data'. Please use ",
"'get_holiday_types()'", call. = FALSE)
}
# if (any(!(types %in% data$"type"))) {
# stop("Some holiday types in 'types' are missing from 'data'. Please use ",
# "'get_holiday_types()'", call. = FALSE)
# }

data <- data[data$"type" %in% types, ]
rownames(data) <- NULL
Expand Down

0 comments on commit 55cf0ba

Please sign in to comment.