As for #39, added a logic to check if the date argument contains NA or not and make sure to exclude NA from yr so that lubridate::as_date(unlist(jholiday(yr, "en"))) won't fail.
As for #40, change it to pass week_start = 7 explicitly when calling lubridate::wday so that results become more stable.
As for #39, added a logic to check if the date argument contains NA or not and make sure to exclude NA from
yr
so thatlubridate::as_date(unlist(jholiday(yr, "en")))
won't fail.As for #40, change it to pass
week_start = 7
explicitly when calling lubridate::wday so that results become more stable.