From Friedrich.Leisch@ci.tuwien.ac.at  Thu Oct 31 09:38:35 2002
From: Friedrich.Leisch@ci.tuwien.ac.at (Friedrich.Leisch@ci.tuwien.ac.at)
Date: Thu, 31 Oct 2002 10:38:35 +0100
Subject: silent option for library function
In-Reply-To: <Pine.GSO.4.40.0210301141560.5730-100000@falmouth.bwh.harvard.edu>
References: <Pine.LNX.4.31.0210301632330.5214-100000@gannet.stats>
 <Pine.GSO.4.40.0210301141560.5730-100000@falmouth.bwh.harvard.edu>
Message-ID: <15808.64027.325849.231315@celeborn.leisch.at>

>>>>> On Wed, 30 Oct 2002 11:56:28 -0500 (EST),
>>>>> Vincent Carey 525-2265 (VC5) wrote:

  > On Wed, 30 Oct 2002 ripley@stats.ox.ac.uk wrote:

  >> On Wed, 30 Oct 2002, Vincent Carey 525-2265 wrote:
  >> 
  >> Quoting me, anonymously!
  >> 

  > not intentional.  i apologize.

  >> 
  >> Try
  >> 
  >> if(silent) {
  >> sink("/dev/null")
  >> on.exit(sink())
  >> }
  >> 
  >> as silent is not in scope at on.exit, I believe.

  > That doesn't seem to work either.  I'll also note that
  > the whole sink diversion that I mentioned initially
  > doesn't solve the problem of library-related messages under
  > Sweave echo=FALSE.  But that is a matter to be addressed
  > under separate cover.

shouldn't results=hide do what you want for Sweave files?

.f

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-devel-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._


silent option for library function
Friedrich.Leisch@ci.tuwien.ac.at