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

From: <ahenningsen_at_email.uni-kiel.de>
Date: Thu 11 Jan 2007 - 14:07:00 GMT


Full_Name: Arne Henningsen
Version: 2.4.0
OS: Linux
Submission from: (NULL) (134.245.140.242)

Sweave does not allow line breaks after forward slashes ("/"). This might lead to a long "substring" of a command that cannot be wrapped. Hence, Sweave either keeps this long "substring" in the current line and produces a too long line or it moves the entire "substring" in the following line and leaves the current line rather empty. This problem can be solved if Sweave is allowed to introduce line breaks after forward slashes. (I guess that this problem can also be solved if parse() adds a blank after a forward slash.)

Example:
The following expression cannot be wrapped by Sweave:

mean(myDataframe$myFirstVariable)/mean(myDataframe$mySecondVariable)

Thanks for the great software packages (R, Sweave, ...), Arne



R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel Received on Fri Jan 12 01:18:06 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 Thu 11 Jan 2007 - 16:31:05 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.