Re: [Rd] parse( connection) and source-keeping

2012-01-12 Thread Duncan Murdoch
On 11/01/2012 8:36 PM, Duncan Murdoch wrote: On 12-01-11 3:54 PM, mark.braving...@csiro.au wrote: > In R<= 2.13.x, calling 'parse( con)' where 'con' is a connection, 'options( keep.source)' is TRUE, and default 'srcfile' would preserve the source. In R>= 2.14.1, it doesn't. Actually, it pres

Re: [Rd] parse( connection) and source-keeping

2012-01-11 Thread Duncan Murdoch
On 12-01-11 3:54 PM, mark.braving...@csiro.au wrote: In R<= 2.13.x, calling 'parse( con)' where 'con' is a connection, 'options( keep.source)' is TRUE, and default 'srcfile' would preserve the source. In R>= 2.14.1, it doesn't. Actually, it preserved the "source" attribute of the function if

[Rd] parse( connection) and source-keeping

2012-01-11 Thread Mark.Bravington
In R <= 2.13.x, calling 'parse( con)' where 'con' is a connection, 'options( keep.source)' is TRUE, and default 'srcfile' would preserve the source. In R >= 2.14.1, it doesn't. > tf <- tempfile() > options( keep.source=TRUE) > texto <- c( 'function() { # comment', '}') > parse( text=texto) exp