[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

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

[Rd] cause 'invalid permissions'

2013-04-29 Thread Maxpar Lin
Hi folks, I am writing a package in C. It works most of the time, but fails occasionally by the segfault looking like: address 0x7f55302e2700, cause 'invalid permissions' Possible actions: 1: abort (with core dump, if enabled) 2: normal R exit 3: exit R without saving workspace 4: exit R saving