From 55cf0badae3234794d7809e6783e6eb451754a01 Mon Sep 17 00:00:00 2001 From: Nicolas Casajus Date: Mon, 15 Apr 2024 13:16:00 +0200 Subject: [PATCH] fix: disable check in filter_holidays() --- R/filter_holidays.R | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/R/filter_holidays.R b/R/filter_holidays.R index ae1df0d..3000a01 100644 --- a/R/filter_holidays.R +++ b/R/filter_holidays.R @@ -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