[Rd] should the text for RIGHT_ASSIGN be - in getParseData()?

2013-07-05 Thread Yihui Xie
Hi, The text column for '-' becomes '-' in the data frame returned by getParseData(): getParseData(parse(text='1-x')) line1 col1 line2 col2 id parenttoken terminal text 7 11 14 7 0 exprFALSE 1 11 11 1 2NUM_CONST TRUE1

Re: [Rd] should the text for RIGHT_ASSIGN be - in getParseData()?

2013-07-05 Thread Duncan Murdoch
On 13-07-05 3:31 AM, Yihui Xie wrote: Hi, The text column for '-' becomes '-' in the data frame returned by getParseData(): getParseData(parse(text='1-x')) line1 col1 line2 col2 id parenttoken terminal text 7 11 14 7 0 exprFALSE 1 11 1

Re: [Rd] should the text for RIGHT_ASSIGN be - in getParseData()?

2013-07-05 Thread peter dalgaard
On Jul 5, 2013, at 13:29 , Duncan Murdoch wrote: On 13-07-05 3:31 AM, Yihui Xie wrote: Hi, The text column for '-' becomes '-' in the data frame returned by getParseData(): getParseData(parse(text='1-x')) line1 col1 line2 col2 id parenttoken terminal text 7 11 1

Re: [Rd] should the text for RIGHT_ASSIGN be - in getParseData()?

2013-07-05 Thread Duncan Murdoch
On 13-07-05 7:40 AM, peter dalgaard wrote: On Jul 5, 2013, at 13:29 , Duncan Murdoch wrote: On 13-07-05 3:31 AM, Yihui Xie wrote: Hi, The text column for '-' becomes '-' in the data frame returned by getParseData(): getParseData(parse(text='1-x')) line1 col1 line2 col2 id parent

Re: [Rd] should the text for RIGHT_ASSIGN be - in getParseData()?

2013-07-05 Thread Barry Rowlingson
On Fri, Jul 5, 2013 at 12:57 PM, Duncan Murdoch murdoch.dun...@gmail.com wrote: R itself doesn't make use of the text column, it's for display of code by highlighters etc. So if anyone does assume text is a function name, it's their bug, not ours. In fact, the bug is already there, because

Re: [Rd] should the text for RIGHT_ASSIGN be - in getParseData()?

2013-07-05 Thread William Dunlap
Is there any reason right-assign with - still exists? How much code on CRAN uses it, and how trivially could it be excised? I use '-' a lot when doing interactive work. I often first run a command to see its printed output then decide that I had better save its value. The up-arrow key gives

Re: [Rd] should the text for RIGHT_ASSIGN be - in getParseData()?

2013-07-05 Thread peter dalgaard
On Jul 5, 2013, at 18:59 , William Dunlap wrote: Is there any reason right-assign with - still exists? How much code on CRAN uses it, and how trivially could it be excised? I use '-' a lot when doing interactive work. I often first run a command to see its printed output then decide that

Re: [Rd] should the text for RIGHT_ASSIGN be - in getParseData()?

2013-07-05 Thread William Dunlap
But up-arrow, ctrl-A then z - is not much less convenient, is it? I didn't know that ctrl-A would bring me to the start of the line, nor that ctrl-E would bring me to the end. Thanks. Bill Dunlap Spotfire, TIBCO Software wdunlap tibco.com -Original Message- From: peter dalgaard

Re: [Rd] should the text for RIGHT_ASSIGN be - in getParseData()?

2013-07-05 Thread Brian Lee Yung Rowe
Here are two more standard emacs bindings that work: Ctrl-K to cut and Ctrl-Y to paste. • Brian Lee Yung Rowe 917 496 4583 On Jul 5, 2013, at 2:32 PM, William Dunlap wdun...@tibco.com wrote: But up-arrow, ctrl-A then z - is not much less convenient, is it? I didn't know that ctrl-A

Re: [Rd] should the text for RIGHT_ASSIGN be - in getParseData()?

2013-07-05 Thread Duncan Murdoch
On 05/07/2013 12:29 PM, Barry Rowlingson wrote: On Fri, Jul 5, 2013 at 12:57 PM, Duncan Murdoch murdoch.dun...@gmail.com wrote: R itself doesn't make use of the text column, it's for display of code by highlighters etc. So if anyone does assume text is a function name, it's their bug, not

Re: [Rd] should the text for RIGHT_ASSIGN be - in getParseData()?

2013-07-05 Thread William Dunlap
Ctrl-K is delete from here to end of line on Linux-comand-line and Windows-GUI R. (My fingers are not nimble enough for emacs, I'll stick with vi.) Bill Dunlap Spotfire, TIBCO Software wdunlap tibco.com -Original Message- From: Brian Lee Yung Rowe [mailto:r...@muxspace.com] Sent:

Re: [Rd] should the text for RIGHT_ASSIGN be - in getParseData()?

2013-07-05 Thread Barry Rowlingson
On Fri, Jul 5, 2013 at 7:24 PM, peter dalgaard pda...@gmail.com wrote: I have used in with multi-line input, occasionally, though. As in replicate(1, { ysim - rbinom(length(p), n, p) glm(cbind(ysim, n - ysim) ~ x, binomial)$deviance }) ... and then you realize that you probably

Re: [Rd] should the text for RIGHT_ASSIGN be - in getParseData()?

2013-07-05 Thread Brian Lee Yung Rowe
That is a more accurate statement regarding Ctrl-K. Nonetheless whatever is killed can be yanked back via Ctrl-Y, so the effect emulates cutting and pasting. I am also a vi user, but these four basic emacs bindings seem to perennially haunt numerous terminal apps. • Brian Lee Yung Rowe

Re: [Rd] should the text for RIGHT_ASSIGN be - in getParseData()?

2013-07-05 Thread Peter Meilstrup
For these programs that use GNU readline, hit Alt-Control-J to switch into vi-like bindings. On Jul 5, 2013, at 16:42, Brian Lee Yung Rowe r...@muxspace.com wrote: That is a more accurate statement regarding Ctrl-K. Nonetheless whatever is killed can be yanked back via Ctrl-Y, so the effect