Re: [Rcpp-devel] Resolving NativeSymbolInfos from Rcpp (revisited)

2017-07-30 Thread Dirk Eddelbuettel
On 30 July 2017 at 19:49, Iñaki Úcar wrote: | 2017-07-30 14:15 GMT+02:00 Dirk Eddelbuettel : | > | > On 30 July 2017 at 02:38, Iñaki Úcar wrote: | > | One last question: would you consider adding a cppXPtr() function to | > | Rcpp? It would work as cppFunction(), but it would return a XPtr | > | i

Re: [Rcpp-devel] Resolving NativeSymbolInfos from Rcpp (revisited)

2017-07-30 Thread Tim Keitt
http://www.keittlab.org/ On Sat, Jul 29, 2017 at 8:00 AM, Iñaki Úcar wrote: > 2017-07-29 13:58 GMT+02:00 JJ Allaire : > > The best you can do is to get the pointer to the function (not sure if > that > > does what you are hoping for): > > > > func <- Rcpp::cppFunction("int foo() { return 1; }")

Re: [Rcpp-devel] Resolving NativeSymbolInfos from Rcpp (revisited)

2017-07-30 Thread Iñaki Úcar
2017-07-30 14:15 GMT+02:00 Dirk Eddelbuettel : > > On 30 July 2017 at 02:38, Iñaki Úcar wrote: > | One last question: would you consider adding a cppXPtr() function to > | Rcpp? It would work as cppFunction(), but it would return a XPtr > | instead of the function. I have a working example if you a

Re: [Rcpp-devel] Resolving NativeSymbolInfos from Rcpp (revisited)

2017-07-30 Thread Dirk Eddelbuettel
On 30 July 2017 at 02:38, Iñaki Úcar wrote: | One last question: would you consider adding a cppXPtr() function to | Rcpp? It would work as cppFunction(), but it would return a XPtr | instead of the function. I have a working example if you are | interested. "Possibly" -- API and functionality ex