Re: [R] Suppressing output (e.g. from cat)

From: Richard Pearson <richard.pearson_at_postgrad.manchester.ac.uk>
Date: Tue, 24 Jun 2008 12:03:02 +0100

Wacek, many thanks! I'm wondering however whether this will be problematic on Windows (I have no windows box to hand to check this, but am creating a package that I would like to be cross-platform)?

Richard.

Wacek Kusnierczyk wrote:
> Richard Pearson wrote:

>> Is it possible to temporarily suspend output? I am using a function
>> that gives lots of output using cat, that is not very informative. Is
>> it possible to turn output off, run the function, then turn output
>> back on again? I've looked at ?options and done various RSiteSearch()s
>> but couldn't find a way to do this.
>>

>
> sink("/dev/null")
>
> ?sink
>
> vQ
>
> ______________________________________________
> R-help_at_r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>
-- 
Richard D. Pearson             richard.pearson_at_postgrad.manchester.ac.uk
School of Computer Science,    http://www.cs.man.ac.uk/~pearsonr
University of Manchester,      Tel: +44 161 275 6178
Oxford Road,                   Mob: +44 7971 221181
Manchester M13 9PL, UK.        Fax: +44 161 275 6204

______________________________________________
R-help_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
Received on Tue 24 Jun 2008 - 11:11:12 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Tue 24 Jun 2008 - 12:30:59 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive