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
_______________________________________________
Rcpp-devel mailing list
[email protected]
https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel

Reply via email to