Re: [R] Splitting printed output in Sweave

From: Roger Bivand <Roger.Bivand_at_nhh.no>
Date: Sat 11 Feb 2006 - 05:58:33 EST


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@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@nhh.no

______________________________________________
R-help@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
Received on Sat Feb 11 06:09:37 2006

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:42:27 EST