Error: result would exceed 2^31 bytes

1.4k views Asked by At

I am trying to load a JSON file into r using rjson. I get the following error message:

Error in paste(readLines(file, warn = FALSE), collapse = "") : result would exceed 2^31-1 bytes

My code is as follows:

JsonData <- fromJSON(file= "text.txt", unexpected.escape = "skip" )

The file is large (3.47 GB) and from Kaggle, and I assume that it is well formatted. Is it possible to split a json file, or stream it?

I am using a Mac, Sierra 10.12.6 and the latest versions of r and Rstudio

0

There are 0 answers