Because of the switch in https://github.com/cmu-delphi/epidatr/pull/223 to using as.Date(tryFormats = ...) instead of as.Date(format = ...), failed parsing behavior has changed. Now if a value doesn't match any of the provided formats, as.Date errors.
This has caused pub_fluview_meta to start failing. One of the fields is in YYYYWW (epiweek) format, but was being parsed as a date. Presumably with the old code, this was always being replaced with NA when the parsing failed. Ask for it to be formatted as an epiweek instead.
Because of the switch in https://github.com/cmu-delphi/epidatr/pull/223 to using
as.Date(tryFormats = ...)
instead ofas.Date(format = ...)
, failed parsing behavior has changed. Now if a value doesn't match any of the provided formats,as.Date
errors.This has caused
pub_fluview_meta
to start failing. One of the fields is in YYYYWW (epiweek) format, but was being parsed as a date. Presumably with the old code, this was always being replaced with NA when the parsing failed. Ask for it to be formatted as an epiweek instead.