Hello,
Does anyone have an example of calling into C level functions that would be
called with .Internal() in R?
Specifically, I'd like to call do_rank, as defined in:
http://svn.r-project.org/R/trunk/src/main/sort.c
These functions have an unusual signature, and I'm not sure what
headers/linke
Thank you to Romain and Dirk. I've seen some C++ rank implementations, and
I'll probably copy one of those.
Lastly, not a milligram of Rcpp in this question. Plain R programming
> questions should go to r-devel, not rcpp-devel.
>
Noted. My apologies. I was hoping there was some magic/sugar for th
Hello,
Short version: Is it possible to instruct the code generator in
`compileAttributes` to source local header files when generating
RcppExports.cpp?
Long version: I'm trying to crib from the Dirk's examples in his recent UCB
talk examples about function pointers (
http://dirk.eddelbuettel.com
>
> The same trick was already used in RcppDE (which was a proof of concept
> about
> converting DEoption from 700 lines of plain C to 400 lines of C++ / Rcpp)
> where I have
>
> typedef double (*funcPtr)(SEXP);
>
> and the rest works like a 'plain old package'.
>
Certainly. And while I ha
I wanted to thank everyone for help on this. Putting the typedef in a
header (inst/include/RItools.h) the export function would auto-include was
exactly what I was looking for. This discussion also prompted me to think a
little more about the interface my package should export should anyone else
wa