I am trying to load a 3Gb csv file in R and I getting the following warning:
Warning messages:
1: In scan(file, what, nmax, sep, dec, quote, skip, nlines, na.strings, : Reached total allocation of 7128Mb: see help(memory.size)
2: In scan(file, what, nmax, sep, dec, quote, skip, nlines, na.strings, : Reached total allocation of 7128Mb: see help(memory.size)
I tried doing this :
memory.size()
[1] 766.68
memory.limit()
[1] 7128
But still my file doesn't get loaded and I keep getting this warning. Is there a way I can get around reading this file in R?
Thank you !
fread()in the past, might be worth looking into. Alsogc()might help with the error if garbage collection isn't taking place. - zacdav