-
Notifications
You must be signed in to change notification settings - Fork 47
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
Download bop_iip6_q via JSON API #309
Comments
@jpmurphy69 Thank you for opening this issue. "Error: cannot allocate vector of size 2.3 Gb" sounds like something that is more related to your local system than the eurostat package / Eurostat API / R. Here is a Stackoverflow issue that deals with something similar: https://stackoverflow.com/questions/5171593/r-memory-management-cannot-allocate-vector-of-size-n-mb With regards to the dataset bop_iip6_q, I tried replicating your issue:
which resulted in the following error message:
In the Eurostat API, some queries are indeed too big for download. From the Eurostat documentation:
Also:
I would guess that based on the name of the dataset it is quarterly data and if the time series is long enough it can be quite big. I suggest downloading the dataset by using start and end dates:
Results in the message:
Still too big! Let's try one quarter:
Ok, it's a big dataset... Let's look at the variables:
Maybe if you include filters for balance of payments item that would reduce the number of rows significantly? |
bop_iip6_q is too big for me to download without filtering (Error: cannot allocate vector of size 2.3 Gb )
I also can't get the example code from the Eurostat tutorial (https://ropengov.github.io/eurostat/articles/eurostat_tutorial.html) to work for this dataset. The code does work for the example dataset given. I've also tried changing filters and removing them altogether.
Example code from Eurostat tutorial - altered,
#Download BoP IIP6
BOP_IIP6 <- get_eurostat_json("bop_iip6_q", filters = list(
geo = "EU28"
))
Error in get_eurostat_json("bop_iip6_q", filters = list(geo = "EU28")) :
The text was updated successfully, but these errors were encountered: