SIGPIPE error when piping R script (e.g. to `head`) - lmmx/devnotes GitHub Wiki
Reading a file in R and piping to head throws error only escapable with internal R system call http://stackoverflow.com/a/28916004/2668831
Horrifying.
Using these example JSON files, replicate with:
Rscript myscript.R | head -1
NB replacing head with cat is not a problem