[R] How can I obtain a boxed sweave output within Latex?

Paul Murrell paul at stat.auckland.ac.nz
Thu Oct 11 10:12:59 CEST 2007


Hi


Albert Sorribas Tello wrote:
> This question is about including code and R results in Latex trough
> Sweave. It works fine and is of great help. Now may question is how to get
> the code and the output computed by R within a frame in Latex.
> Does any one have an idea on that. I tried \fbox, etc. but it seems to
> have problems with the code chunk generation of Sweave and I ger errors.
> I would appreciate any suggestion. I'll writting a statistical book and it
> would be very useful to have the R stuff boxed to highligth it.


Try the boxedminipage package.

Paul


> Thanks for any help.
> 
> 


-- 
Dr Paul Murrell
Department of Statistics
The University of Auckland
Private Bag 92019
Auckland
New Zealand
64 9 3737599 x85392
paul at stat.auckland.ac.nz
http://www.stat.auckland.ac.nz/~paul/



More information about the R-help mailing list