title: Suppressing some messages in R but leaving others?
body: <p>I'm an R newbie using RScaLAPACK and every time I spawn a new process grid I get a message.</p>
  
  <pre><code>&gt; sla.gridInit(2)
  [1] "RScaLAPACK:Process Grid Initialized "
  </code></pre>
  
  <p>I'm going to put this line in a function and I don't want my function to be spitting out this message.  However- I don't want to just sink("/dev/null") the call because for all I know, something somewhere could go wrong and then I'd be suppressing useful output.  Basically, I want it to be silent when it succeeds and loud if it fails.  What is the best way to accomplish this?</p>
  
  <p>Any thoughts, including design considerations, are welcome.</p>
  
  <p>edit:
  sla.gridInit() isn't returning anything.  The code for sla.gridInit just calls print().</p>
  
  <p>edit:
  I suppose capturing output is best like in <a href="https://stackoverflow.com/questions/8797314/suppress-messages-displayed-by-print-instead-of-message-or-warning-in-r">suppress messages displayed by &quot;print&quot; instead of &quot;message&quot; or &quot;warning&quot; in R</a> . At least I will have the output if I want to do something with it.</p>