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 | e...@debian.org | http://dirk.eddelbuettel.com _______________________________________________ Rcpp-devel mailing list Rcpp-devel@lists.r-forge.r-project.org https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel