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

Initial switch to httr2 #738

Open
wants to merge 28 commits into
base: develop
Choose a base branch
from
Open

Conversation

ldecicco-USGS
Copy link
Collaborator

No description provided.

@ldecicco-USGS
Copy link
Collaborator Author

@jesse-ross @ehinman @mikejohnson51 @dblodgett-usgs @mikemahoney218-usgs
This is a pretty big PR that switches dataRetrieval from httr to httr2. I know a lot of you have been using httr2 for awhile. We're going to have some big changes to the USGS services in the next year or so, so I wanted to set things up so we could dive right in with the more modern package.

A fair number of tests were updated, but mostly it was URL attributes that the arguments got shifted around (so, same URL, different order).

If any of you have any comments, feedback, questions, let me know. I think generally everything looks to be behaving the same, except for a few cases where we had non-200 results returning without error. At the moment, those cases now automatically error. Maybe that should be the case (I think a few of our old behaviors were mostly because the service would come back with useful information even though it was a 400 or something like that). Anyway, if it's a problem, we can add a tryCatch, but I kind of think this is a more expected behavior anyway.

We're not planning an update to CRAN anytime soon. I expect this will stay in the "develop" branch for awhile.

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.

1 participant