From maechler at stat.math.ethz.ch  Fri Aug 20 12:35:41 2010
From: maechler at stat.math.ethz.ch (Martin Maechler)
Date: Fri, 20 Aug 2010 12:35:41 +0200
Subject: [Rd] Sweave  <<*, showWarnings=TRUE>>  ?
In-Reply-To: <4C6D80E3.2090806@gmail.com>
References: <4C6D80E3.2090806@gmail.com>
Message-ID: <19566.23165.213030.881192@lynne.math.ethz.ch>

Thank you Duncan, for expanding Sweave functionality,
notably considering error handling.

Related to that is the topic of handling warning messages.

In a course on "using R" (for beginners),
I would really like to show warnings that code chunks produce.
Currently, the warnings are printed to the console when I run
 'R CMD Sweave ..' and do not appear in the resulting *.tex file.

Of course   ---   fortune("Yoda")   ---
I can always fudge what I want,
but it would be quite desirable to have simple Sweave option
which would deal with warnings()  
{ and maybe message(), stop(), and general exception handling; 
  but for all practical purposes, it's the warnings that I'd
  like to be handled automatically.}

Martin Maechler, ETH Zurich



[Rd] Sweave <<*, showWarnings=TRUE>> ?
Martin Maechler