imfr
imfr copied to clipboard
Problems with Global Financial Statistics
Hello there,
I am trying to find some pretty simple data from the Global Financial Statistics: debt-to-GDP ratios for all countries. Having run imf_parameters on the GFSMAB (main aggregates and balances) dataset, I think this query should do what I want:
imf_dataset(database_id = "GFSMAB",
freq = "A",
unit_measure = "XDC_R_B1GQ",
ref_sector = "S13",
classification = "G63_F3T4")
However, it fails with the following error:
Error in `map()`:
ℹ In index: 1.
Caused by error in `` names(df) <- `*vtmp*` ``:
! attempt to set an attribute on NULL
If I exclude both unit_measure and ref_sector then the query compiles, but the API call itself fails:
Request failed [500]. Retrying in 9.8 seconds...
Error in fun(URL = "http://dataservices.imf.org/REST/SDMX_JSON.svc/CompactData/GFSMAB/A....G63_F3T4", :
API request failed. Status: '500', Content: 'There is an issue while retrieving the data, please check your query or contact an administrator.'
Having clicked around the IMF website, this GSF data seems pretty patchy anyway, but I don't think that explains these errors. Any help would be much appreciated.