[Rcpp-devel] RInside error in mac 64 bit?

Dirk Eddelbuettel edd at debian.org
Thu Mar 22 13:52:43 CET 2012


On 21 March 2012 at 21:45, Ariful Azad wrote:
| Thanks for your explanation. callbackFunction will be prefect in my case.
| Just wondering can I pass an R function like below to a c++ function in a
| separate cpp file (e.g., in src folder of my package)? 
| 
| funx <- cfunction(signature(N = "integer" , xvec = "numeric", fun = "function"
| ),
|                   cpp, , Rcpp = TRUE, include = "using
| namespace Rcpp; ")


That's not an R function. That's a compiled + loadable extension to R,
wrapped as an R function.

I may misunderstand something here though...

Dirk

-- 
"Outside of a dog, a book is a man's best friend. Inside of a dog, it is too
dark to read." -- Groucho Marx


More information about the Rcpp-devel mailing list