OK, so I managed to solve this using a primitive workaround. First, split the .csv file using a csv file splitter application. Then, execute the following code:
## First, set the folder where the split .csv files are. Set the file names.
sourceDir <- "split_files_folder"
sourceFile <- paste(sourceDir,"common_name_of_split_files", sep = "/")
## Now set the number of split pieces.
pieces <- "some_number"
## Set the destination folder for the tab-delimited text files.
## Set the output file name.
destDir <- "destination_folder"
destFile <- paste(paste(destDir, "datafile", sep = "/"), "txt", sep = ".")
## Now, initialize the loop.
for (i in 1:pieces)
{
temp <- read.csv(file = paste(paste(sourceFile, i, sep = "_"), "csv", sep = "."))
if (i == 1)
{
write.table(temp, file = destFile, quote = FALSE, sep = "\t", row.names = FALSE, col.names = TRUE)
}
else
{
write.table(temp, file = destFile, append = TRUE, quote = FALSE, sep = "\t", row.names = FALSE, col.names = FALSE)
}
}
And voila! You've got a huge tab-delimited text file!