Re: [Rd] Wishlist: Sweave: allow line breaks after forward slashes (PR#9444)

From: Arne Henningsen <ahenningsen_at_email.uni-kiel.de>
Date: Fri 12 Jan 2007 - 08:34:15 GMT

Dear Fritz and Duncan,

thank you very much for your answers.

On Thursday 11 January 2007 15:42, friedrich.leisch@stat.uni-muenchen.de wrote:
> [...]
> In R 2.5.0 you can use Sweave option keep.source=TRUE to keep the
> original formatting of source code, including all indentation and line
> breaks -> does this solve your problem?

short answer: Yes.
long answer: I generally like the formatting of the code chunks by Sweave (deparse). Therefore, I hesitate a bit to use "keep.source=TRUE".

On Thursday 11 January 2007 15:56, murdoch@stats.uwo.ca wrote:
> [...]
> It's actually deparse() that causes this, but the problem is already
> solved in R-devel (to become R 2.5.0).

Great!

> If you don't like the formatting
> that deparse() gives to one of your expressions, use the Sweave option
> keep.source=TRUE, and your original formatting will be kept for that
> chunk. Or globally retain your formatting via
> \SweaveOpts{keep.source=TRUE} at the start of your file.

see above.

Best wishes,
Arne

-- 
Arne Henningsen
Department of Agricultural Economics
University of Kiel
Olshausenstr. 40
D-24098 Kiel (Germany)
Tel: +49-431-880 4445
Fax: +49-431-880 1397
ahenningsen@agric-econ.uni-kiel.de
http://www.uni-kiel.de/agrarpol/ahenningsen/

______________________________________________
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel
Received on Fri Jan 12 19:38:02 2007

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Fri 12 Jan 2007 - 09:31:10 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-devel. Please read the posting guide before posting to the list.