title: How to suppress "ignoring SIGPIPE signal" error message in R?
body: <p>I have the following files.</p>
  
  <ul>
  <li><p><code>main.R</code></p>
  
  <pre><code>x=data.frame(x=seq_len(100000))
  write.table(x, file=stdout(), row.names=F, col.names=F)
  </code></pre></li>
  <li><p><code>main.sh</code></p>
  
  <pre><code>#!/usr/bin/env bash
  
  Rscript main.R | head
  </code></pre></li>
  </ul>
  
  <p>I got the following error <code>ignoring SIGPIPE signal</code>. This is against the common Linux convention (usually the SIGPIPE signal is ignored). Is there a way to disable such error message in R?</p>
  
  <pre><code>$ ./main.sh
  R&gt; # vim: set noexpandtab tabstop=2:
  R&gt; x=data.frame(x=seq_len(100000))
  R&gt; write.table(x, file=stdout(), row.names=F, col.names=F)
  1
  2
  3
  4
  5
  6
  7
  Error in .External2(C_writetable, x, file, nrow(x), p, rnames, sep, eol,  : 
    ignoring SIGPIPE signal
  Calls: write.table
  Execution halted
  </code></pre>