Alexander Favorov | 1 May 2011 01:25

Bug report: R 2.14.0dev Sweave option width does not work

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.

WBR,
ALexander Favorov

Duncan Murdoch | 1 May 2011 13:35
Picon

Re: Bug report: R 2.14.0dev Sweave option width does not work

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

Duncan Murdoch | 2 May 2011 01:17
Picon

Re: Bug report: R 2.14.0dev Sweave option width does not work

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}
(Continue reading)

Alexander Favorov | 3 May 2011 03:09

Re: Bug report: R 2.14.0dev Sweave option width does not work

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
(Continue reading)


Gmane