[Rd] Sweave <<*, showWarnings=TRUE>> ?
Martin Maechler
maechler at stat.math.ethz.ch
Fri Aug 20 12:35:41 CEST 2010
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
More information about the R-devel
mailing list