-
Notifications
You must be signed in to change notification settings - Fork 23
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
Enable bulk loading or gracious failing if certain indicators are not available. #35
Labels
Comments
Hi, Thank you for opening up this issue. Good idea and something I have been meaning to integrate for awhile. I will keep this issue updated with progress |
Hi, thanks for the response, I just wrote a function to do bulk loading by source. maybe it is of help. Is there any way to strip the JSON query to reduce the amount of information downloaded for each data value?
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello, thanks a lot for this package and the comprehensive access to World Bank statistics it provides. I am using this package in part to download large volumnes of indicators to populate a local macroeconomic database for a particular country. I have 2 issues here which are (1) loading many indicators sequentially is quite slow, and (2) if a partticular indicator is not available for my country the whole API call fails and everything that was loaded before is lost. To give an example: I wanted to load all 4269 indicators in the Education Statistics database. For Example:
Fails after a while with
"Error: World Bank API request failed for indicator LO.EGRA.NCWPM.DAG.2GRD"
, and the rest of my query is lost.I know this probably means some extra work, but in the medium term, an option to bulk loading all indicators from a specific source and / or skipping indicators which cannot be loaded (i.e. using
tryCatch
around the API calls and displaying a warning without terminating the request) would be great. Both could also be enabled through additional arguments towb_data
.The text was updated successfully, but these errors were encountered: