Re: [Rd] Cross-platform linking of a simple front-end

2013-07-05 Thread Prof Brian Ripley
On 06/07/2013 03:19, Simon Urbanek wrote: Jon, On Jul 4, 2013, at 10:52 AM, Jon Clayden wrote: Dear all, I have a simple front-end program which uses the APIs described in section 8 of "Writing R Extensions" to deviate from the standard R behaviour in fairly minor ways. However, I'm having so

Re: [Rd] Cross-platform linking of a simple front-end

2013-07-05 Thread Simon Urbanek
Jon, On Jul 4, 2013, at 10:52 AM, Jon Clayden wrote: > Dear all, > > I have a simple front-end program which uses the APIs described in section > 8 of "Writing R Extensions" to deviate from the standard R behaviour in > fairly minor ways. However, I'm having some difficulty getting it to link >

Re: [Rd] R-devel Digest, Vol 125, Issue 2

2013-07-05 Thread Simon Urbanek
On Jul 4, 2013, at 3:53 AM, gianluca mastrantonio wrote: > I'm just a beginner, so i can make some stupid error. > I use the "-l cov.model.h -l util.h" because i need to load another two c++ > programs (cov.model.cpp and util.cpp) > Well,then you probably meant R CMD SHLIB SpTempWrapC.cpp co

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 wrote: > That is a more accurate statement regarding Ctrl-K. Nonetheless whatever is > killed can be yanked back via Ctrl-Y, so the effect emulates cuttin

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 917

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 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 don't wa

Re: [Rd] Get the tail of a list in C

2013-07-05 Thread maxpar
Thanks. Got it. I need differentiate pairlist and list. -- View this message in context: http://r.789695.n4.nabble.com/Get-the-tail-of-a-list-in-C-tp4670900p4670958.html Sent from the R devel mailing list archive at Nabble.com. __ R-devel@r-project

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 Duncan Murdoch
On 05/07/2013 12:29 PM, Barry Rowlingson wrote: On Fri, Jul 5, 2013 at 12:57 PM, Duncan Murdoch 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

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 wrote: >> But up-arrow, ctrl-A then "z <-" is not much less convenient, is it? > > I didn't know that ctrl-A would bring

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 dalgaar

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 de

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 gi

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 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 > there is actually one

Re: [Rd] Get the tail of a list in C

2013-07-05 Thread romain
Le 2013-07-05 07:15, maxpar a écrit : Hi, I am write R extensions in C. Now I have a VECSXP variable, so how can I get the tail of it (all but the first one) as a new VECSXP. I tried CDR(), but it gives error. Thanks. Hello, A VECSXP is actually an array of pointers, not a linked list. If

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 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 >>

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

[Rd] Get the tail of a list in C

2013-07-05 Thread maxpar
Hi, I am write R extensions in C. Now I have a VECSXP variable, so how can I get the tail of it (all but the first one) as a new VECSXP. I tried CDR(), but it gives error. Thanks. -- View this message in context: http://r.789695.n4.nabble.com/Get-the-tail-of-a-list-in-C-tp4670900.html Sent

[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 TRUE