[R] Sweave ignores output generated by R message() commands

Gilbert Ritschard gilbert.ritschard at unige.ch
Mon Aug 18 10:00:17 CEST 2008


Hello,

I would like my Sweave document to display messages generated with the
message() command. Sweave ignores this output and I did not find any Sweave
option, nor any property that I could change through the options() command
for changing this behavior.
Here is a chunk example.

<<message>>=
test <- function() 
{
   print("this is outputed with print()"); message("and this one with
message()")
}
test()
@

Any help would be welcome.

Gilbert



More information about the R-help mailing list