-
Notifications
You must be signed in to change notification settings - Fork 979
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
fread tries to map memory for the entire file when using nrows #4329
Comments
I had a similar problem on windows on R 4.0.2. Was solved by upgrading R to 4.0.3. |
Same issue here with R 4.0.4 |
@george-kan could you provide reproducible example? |
@jangorecki what I tried was reading one bz2 file from here: https://database.lichess.org/ . The data in the bz2 file are essentially 1 column data. |
Thanks for info. Interesting, I use lichess.org myself occasionally. |
Hi,
I've been trying to use
fread()
to import a large (12GB) tab-delimited text file, which is too large for my machine to import in its entirety. I thought that I would be able to use thenrows
parameter to import a cut-down version of the file to draft my code on, but this results in the following error:However, if I use
head
to create a new file containing only the first 11 rows of the original file I am able to usefread()
to import the new file without issue.Below is a sample of the code I am running to replicate the issue:
I have searched the current issues log for data.table, but the only problem I've found resembling mine is issue #2321, which was closed on 3rd March 2018. The closing messages for this issue stated that the issue had been fixed in data.table version 1.10.5 through the use of lazy memory mapping. However, I'm using data.table version 1.12.8 and seem to be stumbling across the same issue. Once imported, the 10-row data table is only 1.9MB - nowhere near the physical memory limit of my machine (4GB).
My output for
sessionInfo()
is below:Thank you in advance,
Ben
The text was updated successfully, but these errors were encountered: