[R] suppress printing within a function

David Winsemius dwinsemius at comcast.net
Tue Feb 16 19:43:48 CET 2010


On Feb 16, 2010, at 1:31 PM, Jarrett Byrnes wrote:

> I'm working with a few functions (e.g. do.base.descriptions in the
> netstat package) that, in addition to returning an object with
> variables I want to extract, also print output.  There is no way to
> turn this default printing behavior off in many of the functions.
>
> Is there a blanket way to suppress such printing, say, within a loop
> or a ddply statement?

?capture.output
?sink


>
> Thanks!
>
> -Jarrett



David Winsemius, MD
Heritage Laboratories
West Hartford, CT



More information about the R-help mailing list