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

replace httr::GET() with httr::RETRY() #1

Merged
merged 3 commits into from
Apr 18, 2020
Merged

Conversation

tomasokal
Copy link
Contributor

Thanks for for this awesome project, @amrrs ! I'm working on chircollab/chircollab20#1 as part of Chicago R Collab.

In this PR, I'd like to propose swapping out calls to httr::GET() with httr::RETRY(). This will make the package more resilient to transient problems like brief network outages or periods where the service(s) it hits are overwhelmed. In my experience, using retry logic almost always improves the user experience with HTTP clients.

@codecov-io
Copy link

Codecov Report

Merging #1 into master will decrease coverage by 13.33%.
The diff coverage is 100.00%.

Impacted file tree graph

@@             Coverage Diff             @@
##           master       #1       +/-   ##
===========================================
- Coverage   80.00%   66.66%   -13.34%     
===========================================
  Files           1        1               
  Lines          50       48        -2     
===========================================
- Hits           40       32        -8     
- Misses         10       16        +6     
Impacted Files Coverage Δ
R/coindeskr.R 66.66% <100.00%> (-13.34%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 9a37481...8421570. Read the comment docs.

@amrrs
Copy link
Owner

amrrs commented Apr 18, 2020

Thanks for this PR, seems valid! I've not seen this kind of initiative from other R conferences. Is it some kind of contest?

@amrrs amrrs merged commit faf8eb9 into amrrs:master Apr 18, 2020
@tomasokal
Copy link
Contributor Author

@amrrs The conference had a talk/project about the topic and we broke out to find and fix this potential issue across httr packages.

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.

3 participants