From friedrich.leisch at stat.uni-muenchen.de  Thu Jan 11 15:42:26 2007
From: friedrich.leisch at stat.uni-muenchen.de (Friedrich Leisch)
Date: Thu, 11 Jan 2007 15:42:26 +0100
Subject: [Rd] Wishlist: Sweave: allow line breaks after forward
	slashes	(PR#9443)
In-Reply-To: <20070111140700.45BD75730B@slim.kubism.ku.dk>
References: <20070111140700.45BD75730B@slim.kubism.ku.dk>
Message-ID: <17830.19666.63280.738462@lxh5.stat.uni-muenchen.de>

>>>>> On Thu, 11 Jan 2007 15:07:00 +0100 (CET),
>>>>> ahenningsen  (a) wrote:

  > 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)


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?

Best,
Fritz Leisch



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