Re: [Rcpp-devel] function within a function

2012-05-03 Thread Marie Auger-Methe
Thank you for your prompt response! Sorry, this was more a C++ question. I'm still having a hard time to disentangle all of these methods and languages. It worked! I have included below the .R, .h, and .cpp files of the fx from my previous e-mail. Just to help the next newbie ;) . Thanks!

Re: [Rcpp-devel] function within a function

2012-05-02 Thread Dirk Eddelbuettel
Marie, On 2 May 2012 at 15:49, Marie Auger-Methe wrote: | Dear list, | | Still pretty new to Rcpp and C++. I am trying to make a package that has | multiple Rcpp functions. Some of the Rcpp functions call other Rcpp | functions and I am wondering what is the most efficient method to handle |

[Rcpp-devel] function within a function

2012-05-02 Thread Marie Auger-Methe
Dear list, Still pretty new to Rcpp and C++. I am trying to make a package that has multiple Rcpp functions. Some of the Rcpp functions call other Rcpp functions and I am wondering what is the most efficient method to handle this situation. Here is a example of how I am handling the function