<div dir="ltr"><div><div><div><div><div>Hello,<br><br>Does anyone have an example of calling into C level functions that would be called with .Internal() in R?<br><br></div>Specifically, I'd like to call do_rank, as defined in:<br>
<br><a href="http://svn.r-project.org/R/trunk/src/main/sort.c">http://svn.r-project.org/R/trunk/src/main/sort.c</a><br><br></div>These functions have an unusual signature, and I'm not sure what headers/linker directives I would need to include to get access to this function.<br>
<br></div>I am aware that I could call the R level rank() function, but I'm trying to avoid the performance penalty.<br><br></div>Thanks,<br></div>-Mark<br><br></div>