Re: [Rd] Dealing with R list objects in C/C++

2011-01-27 Thread Wayne.Zhang
, 2011 10:04 PM To: Zhang, Wayne: IT (NYK) Cc: r-devel@r-project.org Subject: Re: [Rd] Dealing with R list objects in C/C++ On 01/26/2011 02:56 PM, wayne.zh...@barclayscapital.com wrote: Hi, I'd like to construct an R list object in C++, fill it with relevant data, and pass it to an R

Re: [Rd] Dealing with R list objects in C/C++

2011-01-27 Thread Martin Morgan
at the moment, so I prefer not to bring in Rinside/Rcpp if possible. Thanks again, Wayne -Original Message- From: Martin Morgan [mailto:mtmor...@fhcrc.org] Sent: Wednesday, January 26, 2011 10:04 PM To: Zhang, Wayne: IT (NYK) Cc: r-devel@r-project.org Subject: Re: [Rd] Dealing with R

[Rd] Dealing with R list objects in C/C++

2011-01-26 Thread Wayne.Zhang
Hi, I'd like to construct an R list object in C++, fill it with relevant data, and pass it to an R function which will return a different list object back. I have browsed through all the R manuals, and examples under tests/Embedding, but can't figure out the correct way. Below is my code

Re: [Rd] Dealing with R list objects in C/C++

2011-01-26 Thread Dirk Eddelbuettel
Hi Wayne, On 26 January 2011 at 17:56, wayne.zh...@barclayscapital.com wrote: | Hi, | | I'd like to construct an R list object in C++, fill it with relevant data, and pass it to an R function which will return a different list object back. I have browsed through all the R manuals, and

Re: [Rd] Dealing with R list objects in C/C++

2011-01-26 Thread Martin Morgan
On 01/26/2011 02:56 PM, wayne.zh...@barclayscapital.com wrote: Hi, I'd like to construct an R list object in C++, fill it with relevant data, and pass it to an R function which will return a different list object back. I have browsed through all the R manuals, and examples under