This works
epidatr::set_cache(here::here("cache", "epidatr"), confirm = FALSE)
epidatr::clear_cache(cache_dir = here::here("cache", "epidatr"), confirm = FALSE)
epidatr::pub_covidcast(
"hhs",
"confirmed_admissions_influenza_1d",
"state",
"day",
"*",
epirange(20230901, 20230910),
as_of = 20230901
)
but this doesn't
epidatr::set_cache(here::here("cache", "epidatr"), confirm = FALSE)
epidatr::clear_cache()
epidatr::pub_covidcast(
"hhs",
"confirmed_admissions_influenza_1d",
"state",
"day",
"*",
epirange(20230901, 20230910),
as_of = 20230901
)
and it would be nice if it did. Not sure if we can somehow automatically pass the same previous-cache args over to clear_cache.