silent option for library function

Friedrich.Leisch@ci.tuwien.ac.at Friedrich.Leisch@ci.tuwien.ac.at
Thu, 31 Oct 2002 10:38:35 +0100


>>>>> 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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._