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)
set_cache(days=28L, max_size=2e3)
pub_covidcast("hhs", "confirmed_7dav_incidence_prop", "state", "day", "*", "*", as_of=Sys.Date())
#> Error in charToDate(x): character string is not in a standard unambiguous format
This appears to be because of this comparison: epidata_call$params$as_of != "*" which appears to attempt date conversion on "*". Note we don't even support as_of="*" in the API, which would be extremely large (returning full snapshots for every version), only issues="*".
The text was updated successfully, but these errors were encountered:
brookslogan
changed the title
Error when checking if as_of="*"
Error when checking if as_of=="*" when caching
Oct 2, 2023
Same thing happens when specifying a single date in issues =, and some other error message or warning + bad behavior may happen with issues = date vector.
brookslogan
changed the title
Error when checking if as_of=="*" when caching
Error checking if as_of=="*" blocking use of as_ofOct 5, 2023
brookslogan
changed the title
Error checking if as_of=="*" blocking use of as_of
Error checking if as_of=="*" blocking use of as_of and issues queries
Oct 5, 2023
brookslogan
changed the title
Error checking if as_of=="*" blocking use of as_of and issues queries
Can't use as_of or issues with single DateOct 5, 2023
This is actually blocking use of as_of and issues when using a Date vector (of any length), regardless of whether we are using caching or not. (length 1 should be supported by both. length > 1 should be supported for issues but not as_of.)
brookslogan
changed the title
Can't use as_of or issues with single Date
Can't use as_of or issues with Date vector (any length)
Oct 5, 2023
Created on 2023-10-02 with reprex v2.0.2
This appears to be because of this comparison:
epidata_call$params$as_of != "*"
which appears to attempt date conversion on"*"
. Note we don't even supportas_of="*"
in the API, which would be extremely large (returning full snapshots for every version), onlyissues="*"
.The text was updated successfully, but these errors were encountered: