[R] C function call in R

Steve Lianoglou mailinglist.honeypot at gmail.com
Tue May 18 17:06:51 CEST 2010


Hi,

On Tue, May 18, 2010 at 10:50 AM, John Lande <john.lande77 at gmail.com> wrote:
> dear all,
>
> we am trying to improve the performance of my R code, with the implentation
> of some function with custom C code.
> we found difficult to import and export/import data structure such us
> matrices or data.frame into the external C functions.
>
> we already tried the solution from "Writing R Extensions" form  the R
> webpage.

Perhaps:
(i) you can show us what you've tried and someone can tell help steer
you in a better direction
(ii) you can check out the Rcpp library. A new version was just
released that you can read up on:

http://romainfrancois.blog.free.fr/index.php?category/R-package/Rcpp

It has lots of examples of how it should be used in its unit tests, etc.

-steve

-- 
Steve Lianoglou
Graduate Student: Computational Systems Biology
 | Memorial Sloan-Kettering Cancer Center
 | Weill Medical College of Cornell University
Contact Info: http://cbio.mskcc.org/~lianos/contact



More information about the R-help mailing list