Re: [Rcpp-devel] Help with accessing and manipulating List objects

2013-07-21 Thread Romain Francois
Hi Tal, I'm travelling right now, i'll give some additional pointers later. This is a nice non trivial example, and i hope that the code îve put in recently (with is<>) can help you so that you dont have to use TYPEOF for dispatching. Our exchange at useR is part of my motivation for adding

Re: [Rcpp-devel] Help with accessing and manipulating List objects

2013-07-21 Thread Tal Galili
Thank you Romain and Wush. Where from can I get the latest version of Rcpp with these new features? And how may I learn how to use them? Many thanks, Tal Contact Details:--- Contact me: tal.gal...@gmail.com | Read me: www.ta

Re: [Rcpp-devel] Help with accessing and manipulating List objects

2013-07-21 Thread Dirk Eddelbuettel
On 21 July 2013 at 10:56, Wush Wu wrote: | Hi Tal, | | > That is, say that we have x as a List, how do we go about fetching its attr? | > I tried: | > x[1].attr("type") | > x.attr[1]("type") | > But none seemed to have worked. Any suggestions there? | | Here is a script to show you how to access

Re: [Rcpp-devel] Help with accessing and manipulating List objects

2013-07-21 Thread Dirk Eddelbuettel
On 21 July 2013 at 19:11, Tal Galili wrote: | Thank you Romain and Wush. | | Where from can I get the latest version of Rcpp with these new features? SVN checkout from R-Forge, as always. The is<> stuff isn't finished, though. SVN head is not that far ahead of CRAN's 0.10.4. | And how may I le