Re: [Rcpp-devel] feature proposal: ListOf

2013-10-27 Thread romain
Le 2013-10-26 22:57, Kevin Ushey a écrit : Other thing worth considering for implementation: how might it fit in with Rcpp Attributes? It would be very nice if we could define a function like // [[Rcpp::export]] ListOfIntegerVector fun( ListOfIntegerVector x ) { ... } and have the wrapper

Re: [Rcpp-devel] feature proposal: ListOf

2013-10-25 Thread Kevin Ushey
Hi Romain, Dirk, I'd be willing to contribute an Rcpp Gallery post and some tests if this were added to Rcpp; I think it would be quite useful. -Kevin On Wed, Oct 23, 2013 at 6:31 AM, Dirk Eddelbuettel e...@debian.org wrote: On 23 October 2013 at 14:31, Romain Francois wrote: | Le 23/10/2013

Re: [Rcpp-devel] feature proposal: ListOf

2013-10-25 Thread Romain Francois
Cool. I've got lots on my plate right now, so this is not a priority. Did you have a chance to look at the (simplistic) implementation of ListOf in dplyr: https://github.com/hadley/dplyr/blob/master/inst/include/tools/ListOf.h The indexing operator should be proxified so that we could handle

[Rcpp-devel] feature proposal: ListOf

2013-10-23 Thread Romain Francois
Hello, Another thing I have developped in dplyr but might be generally useful is the ListOf class. See https://github.com/hadley/dplyr/blob/master/inst/include/tools/ListOf.h The idea is to embed, by means of the template parameter what this list contains. Of course it is only usable if the

Re: [Rcpp-devel] feature proposal: ListOf

2013-10-23 Thread Smith, Dale (Norcross)
-boun...@r-forge.wu-wien.ac.at] On Behalf Of Romain Francois Sent: Monday, October 21, 2013 8:33 AM To: rcpp-de...@r-forge.wu-wien.ac.at Subject: [Rcpp-devel] feature proposal: ListOf Hello, Another thing I have developped in dplyr but might be generally useful is the ListOf class. See https

Re: [Rcpp-devel] feature proposal: ListOf

2013-10-23 Thread Dirk Eddelbuettel
On 21 October 2013 at 14:32, Romain Francois wrote: | Hello, | | Another thing I have developped in dplyr but might be generally useful | is the ListOf class. See | https://github.com/hadley/dplyr/blob/master/inst/include/tools/ListOf.h | | The idea is to embed, by means of the template

Re: [Rcpp-devel] feature proposal: ListOf

2013-10-23 Thread Romain Francois
Le 23/10/2013 13:47, Dirk Eddelbuettel a écrit : On 21 October 2013 at 14:32, Romain Francois wrote: | Hello, | | Another thing I have developped in dplyr but might be generally useful | is the ListOf class. See | https://github.com/hadley/dplyr/blob/master/inst/include/tools/ListOf.h | | The

Re: [Rcpp-devel] feature proposal: ListOf

2013-10-23 Thread Dirk Eddelbuettel
On 23 October 2013 at 14:31, Romain Francois wrote: | Le 23/10/2013 13:47, Dirk Eddelbuettel a écrit : | As always, preferably with a usage example (Rcpp Gallery post? Section in a (new) | vigntte?) and tests so that people have some info on how to use it. | | That means it will take me more