From murdoch.duncan at gmail.com  Mon May  2 01:17:10 2011
From: murdoch.duncan at gmail.com (Duncan Murdoch)
Date: Sun, 01 May 2011 19:17:10 -0400
Subject: [Rd] Bug report: R 2.14.0dev Sweave option width does not work
In-Reply-To: <4DBD4595.8070005@gmail.com>
References: <4DBC9A54.9080707@sensi.org> <4DBD4595.8070005@gmail.com>
Message-ID: <4DBDE9F6.5060606@gmail.com>

On 11-05-01 7:35 AM, Duncan Murdoch wrote:
> On 30/04/11 7:25 PM, Alexander Favorov wrote:
>> Hi!
>>
>> In R 2.14.0dev (R version 2.14.0 Under development (unstable)
>> (2011-04-29 r55692), Windows release
>> (http://cran.r-project.org/bin/windows/base/rdevel.html), the line :
>>
>> options(width=55)
>>
>> in code chunk of an Rnw file has no effect on sweave's output text file.
>>
>> The same thing in 2.13.0 worked.
>>
>
> What effect do you expect?  That would only have an effect if
>     - the option value was different before that line, and
>     - you printed something that would differ in the two widths.
>
> Please put together an example to illustrate what problem you're seeing.
>
> Duncan Murdoch
>

Turned out (from a private email) that this has nothing to do with line 
breaking.  It is just that the default in 2.14.0 is keep.source=TRUE, 
whereas it was keep.source=FALSE in previous versions.  If you want the 
old behaviour, put

\SweaveOpts{keep.source=FALSE}

early in your .Rnw file.

Duncan Murdoch



[Rd] Bug report: R 2.14.0dev Sweave option width does not work
Duncan Murdoch