tidyverse/vroom

Print data to stdout in shell

NJU-Bio-Info opened this issue · 1 comments

Hi, I want to use vroom_write() to write output to stdout in shell by using R script and the command is:

vroom_write(join.data, stdout(), col_names = FALSE, delim = args$delimiter)

but when use pipeline in shell:

rscript.r [arguments to scripts] | less -S

it gave me a error information:

Error in vroom_write_connection_(x, file, delim, eol, na_str = na, col_names = col_names,  :
  ignoring SIGPIPE signal
Calls: vroom_write -> vroom_write_connection_
Execution halted

But the result is right, I guess I can not use less -S in shell to preview the result. So do you have some advice for me to turn off this message?

hadley commented

We don't, sorry.