-
Notifications
You must be signed in to change notification settings - Fork 32
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
File size error in readSDMX #137
Comments
@oharac I need to think about it. It's not a common issue, and it's not the first issue dealing with Canada Statistics; 3Gb file is very big, in other tickets users also reported issues with these big datafiles from Canada. There is a discussion launched in #125 where i heard about the potential existence of a web-service to interogate and query SDMX datasets of Canada, but at that time I didn't identify such web-service. The consequence is that to read Canada statistics there is no other solution than download full dataset (should we say a data collection). Althought it's the only thing we have there, reading these big datasets give big issues. But I will investigate how to deal with this, and possibly find a better reader than readChar... |
Typically, this is the situation where we would need #36 Simple API for XML, where the full XML is not loaded into R, but accessed keeping it outside.... |
thanks for looking into it. The package worked great for smaller data collections... |
I removed the |
I might be getting the same problem, but a different error message. I am trying to read a 1.3GB XML file and getting the following message: <simpleError in gsub(BOM, "", content): 'Calloc' could not allocate memory (18446744072278353920 of 4 bytes)> |
Using
readSDMX()
to try to open 1996 Canada census files (data from here), I encounter the errorError in readChar(file, file.info(file)$size) : invalid 'nchars' argument
. I would bet the problem is that the file size of theGeneric_...
file is about 3.2GB, so the file size exceeds R's maximum integer size (max = 2147483647).That may be a problem inherent in
readChar()
since it seems that thenchar
argument takes an integer.Thanks for any help you can provide!
Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.
The text was updated successfully, but these errors were encountered: