<p>On Jun 11, 2013 12:33 PM, "Steve Jaffe" <<a href="mailto:sjaffe@riskspan.com">sjaffe@riskspan.com</a>> wrote:<br>
><br>
> The problem with External Pointer is that R will not be able to use it as a numeric vector (sfaik).<br>
><br>
> What I'm looking for -- and perhaps it is impossible -- would be a way to combine the memory semantics of External Pointer with the value semantics of Numeric Vector. Or something along those lines.</p>
<p>You can get what you want, but you'll have to use XPtr, then on the R side write a reference class and methods which make the object behave like a numeric vector.  No copying necessary.</p>
<p>Krzysztof</p>