[Rcpp-devel] Is it possible to call an R internal C function from Rcpp?

steven pav shabbychef at gmail.com
Mon Mar 2 23:04:46 CET 2015

hi all;

I want to write the density function for the doubly non-central F
distribution using Rcpp. The algorithm (from Paolella's Intermediate
Probability, listing 10.8) computes the weighted sum of the PDF function of
the singly non-central F distribution. This is available in R via df; the
internal df function is apparently

function (x, df1, df2, ncp, log = FALSE)
    if (missing(ncp))
        .External(C_df, x, df1, df2, log)
    else .External(C_dnf, x, df1, df2, ncp, log)

Is it possible to call this C_dnf from Rcpp? One thought I had was to use
Rinside, but I want to avoid that overhead if possible.



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.r-forge.r-project.org/pipermail/rcpp-devel/attachments/20150302/27e7872d/attachment.html>

More information about the Rcpp-devel mailing list