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

bug: fix get_covidhub_forecast_dates #647

Merged
merged 4 commits into from
Jul 7, 2023
Merged

bug: fix get_covidhub_forecast_dates #647

merged 4 commits into from
Jul 7, 2023

Conversation

dshemetov
Copy link
Collaborator

@dshemetov dshemetov commented Jul 7, 2023

Fixes #646.

My R installation is broken, so I can't run the package locally. Hopefully CI can test it here...

Copy link
Collaborator

@brookslogan brookslogan left a comment

Choose a reason for hiding this comment

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

Looks good to me. I've done a little testing treating it as a black box, and skimmed the code:

  • checks pass (except unrelated vdiffr stuff) on my machine
  • I can fetch recent forecasts based on the most recent returned date(s). Single or multiple dates as character or Date vectors work.
  • get_covidhub_predictions("CMU-TimeSeries") doesn't appear to fail when using the default dates from this function, but is taking too long for my unstable internet connection to handle and confirm it completely works.
  • Some other testing on get_covidhub_predictions that probably doesn't really test these changes...

I'm made some slight code tweaks + some non-blocking really minor suggestions as I correct some misunderstandings I had regarding some purrr and stringr functionality and try to figure out what seem to be clean paradigms we could apply more confidently in messier situations.

R-packages/evalcast/R/get_covidhub_predictions.R Outdated Show resolved Hide resolved
R-packages/evalcast/R/get_covidhub_predictions.R Outdated Show resolved Hide resolved
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.

Issue 639 (get_forecast_dates) is showing previous issues
3 participants