Skip to content
Prev 42148 / 63458 Next

external pointers

Patrick,
On Dec 28, 2011, at 12:07 AM, Patrick Leyshock wrote:

            
No. Why would you want to do that? .C is slower and mostly for backwards-compatibility. You can't pass anything complex with .C and the docs recommend .Call for this. The whole point of .C was to bypass R API but in your case you need it to get the pointer.
call_R has nothing to do with this, it is sort of the equivalent of using the restricted set of objects to evaluate R function (so you still can't pass your pointer). As the docs say there is no point in using it in modern code.

Cheers,
Simon