You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
library(epidatr)
#> ! epidatr cache is being used (set env var EPIDATR_USE_CACHE=FALSE if not#> intended).#> ℹ The cache directory is ~/.cache/R/epidatr.#> ℹ The cache will be cleared after 14 days and will be pruned if it exceeds 4096#> MB.#> ℹ The log of cache transactions is stored at ~/.cache/R/epidatr/logfile.txt.
pub_covidcast(
source="hhs",
signals="confirmed_admissions_covid_1d_prop_7dav",
geo_type="state",
time_type="day",
geo_values="*",
time_values= epirange(20201101, 20231231),
as_of= as.Date("2024-02-28")
)
#> Error in charToDate(x): character string is not in a standard unambiguous format
>= is comparing a Date-class as_of to a %Y%m%d-formatted string, trying to convert the RHS to Date and having issues (a %Y-%m-%d string would work with the auto conversion, but not %Y%m%d. But %Y-%m-%d might have issues on other types of as_ofs).
Thanks to @XuedaShen for pointing this out.
Created on 2024-02-28 with reprex v2.0.2
This is from
cache_epidata_call()
->check_is_recent()
, probably similar tocheck_is_cachable()
in #194.The text was updated successfully, but these errors were encountered: