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

imf_data is not reterived data! #33

Open
msgoussi opened this issue May 1, 2021 · 2 comments
Open

imf_data is not reterived data! #33

msgoussi opened this issue May 1, 2021 · 2 comments

Comments

@msgoussi
Copy link

msgoussi commented May 1, 2021

I tried to download the whole CPIS dataset,
however when i tried

data <- imf_data("CPIS", "I_A_D_T_T_BP6_USD", country = "AT",                start = 2005, end = 2020, return_raw = TRUE)

Request failed [413]. Retrying in 1.7 seconds...

@cjyetman
Copy link
Contributor

cjyetman commented May 1, 2021

library(imfr)

data <- imf_data("CPIS", "I_A_D_T_T_BP6_USD", country = "AT", start = 2005, 
                 end = 2020, return_raw = TRUE)
#>   |======================================================================| 100%
#> Request failed [413]. Retrying in 1 seconds...
#>   |======================================================================| 100%
#> Request failed [413]. Retrying in 1 seconds...
#>   |======================================================================| 100%
#> [1] "\"Error\":{\"status\":413,\"message\":\"Response size exceeds service limit\",\"more_info\":\"The query results in more than the supported maximum number of time series in one request. Please change your query. http://datahelp.imf.org/knowledgebase/articles/937155-how-to-query-large-datasets-with-data-services\"}"

Have you considered this: "The query results in more than the supported maximum number of time series in one request. Please change your query. http://datahelp.imf.org/knowledgebase/articles/937155-how-to-query-large-datasets-with-data-services\"?

@msgoussi
Copy link
Author

msgoussi commented May 1, 2021

I chose one year, and i get an error too.

I need to draw to your attention, that imf_data is taking country, indicator, and start and end year.

if query results iin more than the support max number of time series, the imf_data should include other parameters counterpart country, sector, and counterpart sector.

image

Suggestion, that IMf should think of having a bulk download like Rilostat package.

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

No branches or pull requests

2 participants