joshua wells wrote:
> 
> 
> Unfortunately, i run thousands of these and the output gets extremely
> lengthy. Is there any way to suppress this printout in R?
> 
> Thank you,
> 
> Josh
>                                         
> 

One function that comes to mind is sink() which allows you to redirect
output somewhere else, such as a file or /dev/null which on unix-like
systems is where unwanted data goes to die:

sink('/dev/null')

# Stuff you don't want to see.

sink()

# Stuff you do want to see.

If you happen to be using Windows, you may be able to achieve more or less
the same effect by sinking to a temporary file:

sink( tempfile() )

Another function that may be useful is capture.output()

Good luck!

-Charlie

-----
Charlie Sharpsteen
Undergraduate
Environmental Resources Engineering
Humboldt State University
-- 
View this message in context: 
http://www.nabble.com/gee%3A-suppress-printout-tp25866057p25866226.html
Sent from the R help mailing list archive at Nabble.com.

______________________________________________
R-help@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.

Reply via email to