Re: [Rcpp-devel] multiple function when using Inline

2011-10-20 Thread Darren Cook
> I'm not too clear on how to include the other c++ functions. Is > there a good example of this somewhere? As Romain said, you abuse the includes argument (which is intended for specifying #includes, etc. but can be anything) by putting the full function in there. Here is one way to calculate p

Re: [Rcpp-devel] multiple function when using Inline

2011-10-20 Thread Noah Silverman
That makes sense. I have only one R facing function from the C++. It is just inside my C++ that I want to call a few things. I'm not too clear on how to include the other c++ functions. Is there a good example of this somewhere? Thanks! -- Noah Silverman UCLA Department of Statistics 8208 M

Re: [Rcpp-devel] multiple function when using Inline

2011-10-20 Thread Romain François
Hello, You are crossing the boundary when it really starts to make sense to make a package. If you only have one R facing C++ function calling other C++ functions, then you can abuse the includes argument of cxxfunction to embed as many C++ functions as you like. Having multiple R facing fun

[Rcpp-devel] multiple function when using Inline

2011-10-19 Thread Noah Silverman
Hi, I've started using Rcpp + inline for some of my code. It is amazingly fast. However, I have need for a few c++ functions. (One main needs to call a few other functions.) At this point, I don't need separate classes, just the ability to have multiple functions. (Coding up several separate