[Rcpp-devel] (no subject)

Dirk Eddelbuettel edd at debian.org
Thu Oct 17 21:37:17 CEST 2013


Thanks for posting.  Just for the record, and just like the main R lists, we
prefer posts with full (correct) names and some sort of affiliation where
available.  

You do know who you are dealing with when you get reply from me; it seems
polite to offer the same.

On 17 October 2013 at 15:23, strokes k. wrote:
| I would very much appreciate if you would care to answer the following
| questions:
| 
| 1.  Can I use Inline (or any of the tools in the Rcpp suite) to achieve the
| effect I desire?

Look at the Rcpp attributes vignette.  "Attributes", as we call, is inline in
steroids. You never touch "system()", you never touch ".C()" and of course
you never touch "dyn.load()".

| 2.  Can you think of any problems with the implementation I've described, i.e.
| horrible consequences to an unsuspecting useR?

You can do better.  A while back, in the RcppDE package I managed offer
passage of user-defined C++ functions which the DE engine then optimized.
The XPtr class in Rcpp makes that easy.

A couple of days ago I gave a talk at U of C / Booth and worked a similar
example into my slides (see the 2nd set -- available at my 'Presentations' page).

I think that scheme is what you'd want here too. 

Hope this helps. The topic is good:  how to pass user-controlled _compiled_
code through so we should work this out / document it.

Cheers, Dirk

-- 
Dirk Eddelbuettel | edd at debian.org | http://dirk.eddelbuettel.com


More information about the Rcpp-devel mailing list