I am attempting to read a .txt file into R that filled with data and 2.51 GB in size, I have tried using the fread code from the data.table package.
Here my example code.
library(data.table)
Testing <- fread("C:/Users/Juand/Documents/FRED/Data/testing data/LabDataExport_20220908.txt", header = TRUE, sep = "|")
My result is this, I keep getting back this error message
Error in fread("C:/Users/Juand/Documents/FRED/Data/testing data/LabDataExport_20220908.txt", :
R character strings are limited to 2^31-1 bytes
Doing some research, some people have reported success loading in files larger than 6 GB using the fread command but others have stated that R does not support loading in files larger than 2 GB due to memory size limitation.
I have been using this link below as my guide.
What are my options here?
Structure of File Following Image
The file 9,621,354 lines and the delimiter appears to be "|"