search for: ndjon

Displaying 3 results from an estimated 3 matches for "ndjon".

Did you mean: ndjson
2017 Sep 03
2
readLines() segfaults on large file & question on how to work around
...l.com> > wrote: > > I have a 2.1GB JSON file. Typically I use readLines() and > > jsonlite:fromJSON() to extract data from a JSON file. > > If your data consists of one json object per line, this is called > 'ndjson'. There are several packages specialized to read ndjon files: > > - corpus::read_ndjson > - ndjson::stream_in > - jsonlite::stream_in > > In particular the 'corpus' package handles large files really well > because it has an option to memory-map the file instead of reading all > of its data into memory. > > If t...
2017 Sep 02
5
readLines() segfaults on large file & question on how to work around
Hi: I have a 2.1GB JSON file. Typically I use readLines() and jsonlite:fromJSON() to extract data from a JSON file. When I try and read in this file using readLines() R segfaults. I believe the two salient issues with this file are 1). Its size 2). It is a single line (no line breaks) I can reproduce this issue as follows #Generate a big file with no line breaks # In R >
2017 Sep 04
0
readLines() segfaults on large file & question on how to work around
...te: >>> I have a 2.1GB JSON file. Typically I use readLines() and >>> jsonlite:fromJSON() to extract data from a JSON file. >> >> If your data consists of one json object per line, this is called >> 'ndjson'. There are several packages specialized to read ndjon files: >> >> - corpus::read_ndjson >> - ndjson::stream_in >> - jsonlite::stream_in >> >> In particular the 'corpus' package handles large files really well >> because it has an option to memory-map the file instead of reading all >> of i...