Skip to content

Splitting printed output in Sweave

3 messages · Andrew Robinson, Roger Bivand

#
Dear R community,

I'm trying to figure out if there is any way to split the printed output
of some commands, for example summary.lme, so that I can intersperse
comments in Sweave.  I don't mind running the command numerous times and
masking various portions of the output, or saving the output as an object
and printing it, but I can't figure out how to do either.  Does anyone
have any suggestions?

Cheers

Andrew

Andrew Robinson
Senior Lecturer in Statistics                       Tel: +61-3-8344-9763
Department of Mathematics and Statistics            Fax: +61-3-8344 4599
University of Melbourne, VIC 3010 Australia
Email: a.robinson at ms.unimelb.edu.au    Website: http://www.ms.unimelb.edu.au
#
On Sat, 11 Feb 2006, Andrew Robinson wrote:

            
?capture.output should help a good deal.

  
    
#
Roger,

that's beautiful -- thanks!

Andrew


On Sat, February 11, 2006 5:58 am, Roger Bivand said:
Andrew Robinson
Senior Lecturer in Statistics                       Tel: +61-3-8344-9763
Department of Mathematics and Statistics            Fax: +61-3-8344 4599
University of Melbourne, VIC 3010 Australia
Email: a.robinson at ms.unimelb.edu.au    Website: http://www.ms.unimelb.edu.au