Re: [R] Attempting to access an R list from within C code

2011-04-27 Thread Duncan Murdoch
On 27/04/2011 9:43 AM, Cormac Long wrote: Hello R-help, I am wondering if anyone can help me with this: I want to access data in a list which has been passed into a C function, but I cannot work out how to access the values. How do I move from the given SEXP pointer to the next object in the li

[R] Attempting to access an R list from within C code

2011-04-27 Thread Cormac Long
Hello R-help, I am wondering if anyone can help me with this: I want to access data in a list which has been passed into a C function, but I cannot work out how to access the values. How do I move from the given SEXP pointer to the next object in the list? I have tried to use CDR, but to no avail