[R] WDI package commands timing out and not working
Anupam Tyagi
@nupty@g| @end|ng |rom gm@||@com
Thu Aug 8 09:13:23 CEST 2024
There is some problem getting data with the WDI package. It gets data from
World Development Indicators and other databases of The World Bank. I let
the code run for several minutes and nothing happens. Sometimes it gives a
time out message. I ran the same code last year and it worked. Any idea
what the problem is and how to fix it?
> dat1EU = WDI(indicator = c('NY.ADJ.NNAT.GN.ZS', 'NY.GNS.ICTR.GN.ZS'), country = c('EU'), start=1977, end=2020)
> dat1OED = WDI(indicator = c('NY.ADJ.NNAT.GN.ZS', 'NY.GNS.ICTR.GN.ZS'), country = c('OED'), start=1977, end=2020)Warning message:
In open.connection(con, "rb") :
URL 'https://api.worldbank.org/v2/en/country/OED/indicator/NY.ADJ.NNAT.GN.ZS?format=json&date=1977:2020&per_page=32500&page=1':
Timeout of 60 seconds was reached
The following command works and gives the correct output.
> WDIsearch('savings')
--
Anupam.
[[alternative HTML version deleted]]
More information about the R-help
mailing list