Re: [R] suppress output of neural network for use in Sweave

From: Gabor Grothendieck <ggrothendieck_at_gmail.com>
Date: Thu 16 Jun 2005 - 09:39:50 EST

On 6/15/05, Barry Rowlingson <B.Rowlingson@lancaster.ac.uk> wrote:
> Thorstensen Nicolas wrote:
> > Hi!
> >
> > How can I suppress the output of the function nnet in the library(nnet) ?
>
> ?nnet suggests adding trace=FALSE to the arguments.
>
> In other cases if functions dont have this sort of option then on a
> Unix box you can wrap your function calls in sink("/dev/null") [do
> stuff] sink() to send output to a black hole. Not sure what the Windows
> equivalent is.

A general way OS independent way to turn off output is via capture.output:

        invisible(capture.output(...whatever...))



R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Thu Jun 16 09:54:03 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:32:43 EST