Skip to content
New issue

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

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

Already on GitHub? # to your account

ratelimit API calls #32

Closed
dpprdan opened this issue Feb 13, 2018 · 2 comments
Closed

ratelimit API calls #32

dpprdan opened this issue Feb 13, 2018 · 2 comments
Assignees

Comments

@dpprdan
Copy link
Member

dpprdan commented Feb 13, 2018

use ratelimitr on httr::GET (and after memoise, i.e. memoise -> ratelimit -> GET)

@dpprdan dpprdan self-assigned this Feb 13, 2018
@dpprdan dpprdan mentioned this issue Mar 3, 2018
5 tasks
dpprdan added a commit to dpprdan/opencage that referenced this issue Mar 3, 2018
@dpprdan
Copy link
Member Author

dpprdan commented Mar 3, 2018

The default limit is set to 1 call per second as per the API limit for the Free Trial package. It can be configured with setting options("oc_requests_per_second") at the start of a session/script or permanently via .Rprofile.

@maelle
Copy link
Member

maelle commented Mar 4, 2018

Cool, thx a lot. In the vignette documenting this we can show code example and mention usethis::edit_r_profile as a way to easily find where the .Rprofile is/open it.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants