From favorov at sensi.org  Tue May  3 03:09:21 2011
From: favorov at sensi.org (Alexander Favorov)
Date: Mon, 02 May 2011 21:09:21 -0400
Subject: [Rd] Bug report: R 2.14.0dev Sweave option width does not work
In-Reply-To: <4DBDE9F6.5060606@gmail.com>
References: <4DBC9A54.9080707@sensi.org> <4DBD4595.8070005@gmail.com>
	<4DBDE9F6.5060606@gmail.com>
Message-ID: <4DBF55C1.3070102@sensi.org>

Thank you! It works.

On 01.05.2011 19:17, Duncan Murdoch wrote:
> 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
Alexander Favorov