Skip to content
Prev 5165 / 10988 Next

[Rcpp-devel] loading a souceCpp-ed function

If (2) is possible, I do not think (1) is harder than that.  Actually, I
implemented something in
http://cran.r-project.org/web/packages/cxxfunplus/index.html
But nobody is interested in it and it is always suggested to created a
package instead of using inline (or I guess sourceCpp now), I do not think
about improving it.

My idea is to store the binary file as raw type in R's object, which then
can be saved across sessions.  Then if the function is needed/called, we
first check if the library is loaded.  If not, we write the raw data to a
temporary file and load that.

--
Jiqiang

On Tue, Jan 29, 2013 at 6:35 PM, Antonio Piccolboni <antonio at piccolboni.info
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.r-forge.r-project.org/pipermail/rcpp-devel/attachments/20130129/46885b22/attachment.html>