Re: [R] Sweave and abbreviating output from R

From: Sean Davis <>
Date: Mon 11 Apr 2005 - 22:21:13 EST

On Apr 11, 2005, at 8:12 AM, Gavin Simpson wrote:

> Gabor Grothendieck wrote:

>> On Apr 11, 2005 7:22 AM, Gavin Simpson <>
>> wrote:
>>> Dear List,
>>> I'm using Sweave to produce a series of class handouts for a course
>>> I am
>>> running. The students in previous years have commented about wanting
>>> output within the handouts so they can see what to expect the output
>>> to
>>> look like. So Sweave is a godsend for producing this type of handout
>>> -
>>> with one exception: Is there a way to suppress some rows of printed
>>> output so as to save space in the printed documentation? E.g
> <snip>

>>> Any thoughts on this?
>> Maybe you could use head(rnorm(100)) instead. Check ?head
>> for other arguments.

Any thought you would want to locally modify the print methods for object of interest? I haven't tried it, but it might allow you to treat "large objects" like matrices, long vectors, and data.frames differently than objects like model.fits, etc.

Sean mailing list PLEASE do read the posting guide! Received on Mon Apr 11 22:36:23 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:31:06 EST