[R] Splitting printed output in Sweave

Andrew Robinson A.Robinson at ms.unimelb.edu.au
Fri Feb 10 20:56:36 CET 2006


Roger,

that's beautiful -- thanks!

Andrew


On Sat, February 11, 2006 5:58 am, Roger Bivand said:
> On Sat, 11 Feb 2006, Andrew Robinson wrote:
>
>> 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?
>
> ?capture.output should help a good deal.
>
>>
>> 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
>>
>> ______________________________________________
>> R-help at stat.math.ethz.ch mailing list
>> https://stat.ethz.ch/mailman/listinfo/r-help
>> PLEASE do read the posting guide!
>> http://www.R-project.org/posting-guide.html
>>
>
> --
> Roger Bivand
> Economic Geography Section, Department of Economics, Norwegian School of
> Economics and Business Administration, Helleveien 30, N-5045 Bergen,
> Norway. voice: +47 55 95 93 55; fax +47 55 95 95 43
> e-mail: Roger.Bivand at nhh.no
>
>


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




More information about the R-help mailing list