zipangu::is_jholiday(as.Date(c("2019-01-01", "2020-01-01")))
#> Warning in if (checked == FALSE) rlang::warn("The year specified must be after
#> the law was enacted in 1948"): the condition has length > 1 and only the first
#> element will be used
#> Warning in if (is_current_law_yr(year)) {: the condition has length > 1 and only
#> the first element will be used
#> Warning in if (checked == FALSE) rlang::warn("The year specified must be after
#> the law was enacted in 1948"): the condition has length > 1 and only the first
#> element will be used
#> Warning in if (is_current_law_yr(year)) {: the condition has length > 1 and only
#> the first element will be used
#> Error in seq.int(0, lubridate::days_in_month(date_begin) - 1): 'to' must be of length 1
これが動いてほしい...
Created on 2020-04-05 by the reprex package (v0.3.0)