[Rcpp-devel] Fwd: Re: Making objects in the C++ "side" persistent

Krzysztof Sakrejda krzysztof.sakrejda at gmail.com
Wed Jun 18 01:34:59 CEST 2014


On Tue, Jun 17, 2014 at 7:30 PM, Martin Jakt <mjakt at z2.keio.jp> wrote:
>> if (identical(data_ptr, new('externalptr'))) return("No data available
>> to retrieve.")
>>
>
> thanks. I think it would have taken me a long time to come up with that from
> the documentation. It seems curious there's no direct way.

Yes... so it comes with the caveat that I'm not sure if this is
documented behavior
and the R developers might decide to change it (?)  If this is somehow
documented or if there is an Rcpp implementation which gets closer to documented
behavior I would love to know.

Krzysztof

>
> cheers,
>
> Martin
>
> --
> Martin Jakt
> Department of Systems Medicine
> Mitsunada Sakaguchi Laboratory
> Keio University School of Medicine



-- 

Krzysztof Sakrejda

Organismic and Evolutionary Biology
University of Massachusetts, Amherst
319 Morrill Science Center South
611 N. Pleasant Street
Amherst, MA 01003

work #: 413-325-6555
email: sakrejda at cns.umass.edu
-----------------------------------------------


More information about the Rcpp-devel mailing list