Re: [Rd] how to call a function from C

2010-01-14 Thread Laurent Gautier
Hi, In Rcpp, we now have a Function class to encapsulate functions (they cover all three kinds, but this may change). Just a note on that: there is probably no hurry to do so. rpy2 is also having CLOSXP, BUILTINSXP, and SPECIALSXP represented as one function-like class and seems to be

Re: [Rd] how to call a function from C

2010-01-14 Thread Romain Francois
On 01/14/2010 12:42 PM, Laurent Gautier wrote: Hi, In Rcpp, we now have a Function class to encapsulate functions (they cover all three kinds, but this may change). Just a note on that: there is probably no hurry to do so. rpy2 is also having CLOSXP, BUILTINSXP, and SPECIALSXP represented as

Re: [Rd] how to call a function from C

2010-01-14 Thread Laurent Gautier
On 1/14/10 1:16 PM, Romain Francois wrote: On 01/14/2010 12:42 PM, Laurent Gautier wrote: Hi, In Rcpp, we now have a Function class to encapsulate functions (they cover all three kinds, but this may change). Just a note on that: there is probably no hurry to do so. rpy2 is also having

Re: [Rd] how to call a function from C

2010-01-14 Thread Dominick Samperi
The Rcpp library in RcppTemplate (the package that Rcpp forked from) simplifies the process of calling functions from C++. The design goal was to enable users to focus on scientific problem solving rather than interface problems and low-level R internals (by hiding these details and documenting

Re: [Rd] how to call a function from C

2010-01-14 Thread Romain Francois
On 01/14/2010 03:50 PM, Dominick Samperi wrote: The Rcpp library in RcppTemplate (the package that Rcpp forked from) simplifies the process of calling functions from C++. The design goal was to enable users to focus on scientific problem solving rather than interface problems and low-level R

Re: [Rd] how to call a function from C

2010-01-14 Thread Dominick Samperi
On Thu, Jan 14, 2010 at 10:20 AM, Romain Francois romain.franc...@dbmail.com wrote: It might be interesting that you post how you would invoke the same using RcppTemplate. Sorry, I will not complete with my own work. The point of my last post was to see if anybody still uses RcppTemplate so

Re: [Rd] how to call a function from C

2010-01-14 Thread Romain Francois
On 01/14/2010 02:27 PM, Laurent Gautier wrote: On 1/14/10 1:16 PM, Romain Francois wrote: On 01/14/2010 12:42 PM, Laurent Gautier wrote: Hi, In Rcpp, we now have a Function class to encapsulate functions (they cover all three kinds, but this may change). Just a note on that: there is

Re: [Rd] how to call a function from C

2010-01-14 Thread luke
On Thu, 14 Jan 2010, Romain Francois wrote: On 01/14/2010 12:42 PM, Laurent Gautier wrote: Hi, In Rcpp, we now have a Function class to encapsulate functions (they cover all three kinds, but this may change). Just a note on that: there is probably no hurry to do so. rpy2 is also having