[Rd] Bug report: R 2.14.0dev Sweave option width does not work
Duncan Murdoch
murdoch.duncan at gmail.com
Mon May 2 01:17:10 CEST 2011
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
More information about the R-devel
mailing list