Skip to content
Prev 23012 / 63424 Next

Source references from the parser

On 11/25/2006 11:00 PM, Deepayan Sarkar wrote:
This is now committed.

I used keep.source, exactly the same as the option() that controls this 
behaviour in other places.

I decided to set the default to TRUE.  This means vignettes will all 
look different in R-devel.  The simplest way to get the previous 
appearance is to put in

\SweaveOpts{keep.source=FALSE}

but in most cases I think people will want the new behaviour.  It's only 
bad if the code was badly formatted or contained comments you don't want 
to show up in the final document.  I looked through the grid package 
vignettes, and only saw about half a dozen places where I thought the 
formatting needed tweaking.

Duncan Murdoch