Skip to content

SIGPIPE error when piping R script (e.g. to `head`)

Louis edited this page Mar 7, 2015 · 1 revision

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

Clone this wiki locally