[Rcpp-devel] One main needs to call a few other functions

Christian Gunning xian at unm.edu
Fri Oct 21 09:28:36 CEST 2011


On Thu, Oct 20, 2011 at 7:58 PM,
<rcpp-devel-request at r-forge.wu-wien.ac.at> wrote:
> to me the concern exists whether the other
> function is in a package or not, how would a call be made to an outside
> compiled object code from within Rcpp.

This is a pretty confusing sentence(s).  Clearer questions tend to
elicit clearer answers :)

> My C++ skills are quite limited, after all I represent the riff-raff
> that just hurdled the new "lower bar" to incorporating compiled C++ code
> in R.

You might want to spend some time practicing with the low bar before
you go for the high bar :)  Pulling in external code and/or objects
can be a bit confusing before you get the basics.

You mention packages (did you mean libraries?), so I want to point out
that calling R functions from within Rcpp is quite easy, if relatively
slow (see the quickref section on Functions).

Finally, for reference, the list browser/search engine is here -- I'm
a fan of the "frames and threads" interface myself:
http://dir.gmane.org/gmane.comp.lang.r.rcpp

hth,
Christian
-- 
A man, a plan, a cat, a ham, a yak, a yam, a hat, a canal – Panama!


More information about the Rcpp-devel mailing list