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

get_publicdata() & get_measure(): throw meaningful error when banned due to exceedance of limits #80

Open
dimfalk opened this issue Apr 17, 2024 · 0 comments
Assignees
Labels
enhancement Refactoring and restyling of existing code

Comments

@dimfalk
Copy link
Owner

dimfalk commented Apr 17, 2024

if (n > 500) {
input <- menu(c("Yes", "No"),
title = "You are about to exceed your hourly limit of 500 requests (and risking to be temporarily banned from the API).
Do you really want to continue?")
if (input == 2) {
"Current request aborted by the user." |> stop()
}
}

@dimfalk dimfalk added the enhancement Refactoring and restyling of existing code label Apr 17, 2024
@dimfalk dimfalk self-assigned this Apr 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Refactoring and restyling of existing code
Projects
None yet
Development

No branches or pull requests

1 participant