Error: result would exceed 2^31 bytes

a 夏天 提交于 2019-12-13 17:20:27

问题


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

来源:https://stackoverflow.com/questions/46139895/error-result-would-exceed-231-bytes

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!