[R] Sweave template

Romain Francois romain.francois at dbmail.com
Tue Jun 16 21:13:18 CEST 2009


Frank E Harrell Jr wrote:
>
> Dear Group,
>
> I have made significant improvements to our Sweave template, have made 
> the template self-contained (i.e., you can run it yourself and it will 
> find the datasets it needs), and have included the output pdf file. 
> This is at http://biostat.mc.vanderbilt.edu/SweaveTemplate .  You will 
> see in the pdf file the enhancements in how R code is pretty-printed, 
> and I have added an example where some R function output is suppressed 
> from the listing that Sweave typesets.  The new template also suggests 
> how to auto-document the computing environment at the end of the 
> report, and how to properly reference R and add-on packages.  Figures 
> are centered (but not as nicely as Marc Schwartz' approach) and better 
> defaults are used for axis label and tick mark label positioning.
>
> Thanks to Romain Francois for providing the trick of suppressing parts 
> of R output (replacing it with ...) and Peter Ruckdeschel for his 
> excellent SweaveListingUtils package.  Suggestions for further 
> improvements are welcomed.
>
> Frank
Thanks to some feedback from Philippe Grosjean today, I managed to make 
some progress on highlight. I posted the result of the template using 
both systems here:
http://addictedtor.free.fr/misc/sweave/

-- 
Romain Francois
Independent R Consultant
+33(0) 6 28 91 30 30
http://romainfrancois.blog.free.fr




More information about the R-help mailing list