Skip to content

Can't use as_of or issues with Date vector (any length) #192

@brookslogan

Description

@brookslogan
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

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 support as_of="*" in the API, which would be extremely large (returning full snapshots for every version), only issues="*".

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions