[Rcpp-devel] Resolving NativeSymbolInfos from Rcpp (revisited)
Sokol Serguei
serguei.sokol at gmail.com
Sat Jul 29 15:02:18 CEST 2017
Jj Allaire has written at Sat, 29 Jul 2017 07:58:13 -0400
> 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; }")
>
> > body(func)
> .Primitive(".Call")(<pointer: 0x103bf0f40>)
And to narrow even more:
> Rcpp::cppFunction("int foo() { return 1; }")
> as.list(body(foo))[[2]]
<pointer: 0x7f01d493fae0>
attr(,"class")
[1] "NativeSymbol"
Serguei.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.r-forge.r-project.org/pipermail/rcpp-devel/attachments/20170729/9f9f015a/attachment.html>
More information about the Rcpp-devel
mailing list