Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lastest_issue is an epiweek, not a date #225

Merged
merged 1 commit into from
Nov 30, 2023

Conversation

nmdefries
Copy link
Contributor

Because of the switch in #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.

Copy link
Contributor

@dshemetov dshemetov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good catch! nice that we're tightening up our data types and catching bugs in the process 👍

@nmdefries nmdefries merged commit 1a5e8b5 into dev Nov 30, 2023
10 checks passed
@nmdefries nmdefries deleted the ndefries/parse-fluview-meta-date branch November 30, 2023 19:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants