[Rcpp-devel] Fwd: Re: Making objects in the C++ "side" persistent
mjakt at z2.keio.jp
Wed Jun 18 01:30:09 CEST 2014
On Tuesday 17 Jun 2014 06:36:43 Krzysztof Sakrejda wrote:
> > one last question:
> > Is there a way to test if an external pointer is null (or rather <nil>).
> > is.null() always gives me FALSE, and I can't find anything else.
> The best I've found (on the R side) is:
> 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.
Department of Systems Medicine
Mitsunada Sakaguchi Laboratory
Keio University School of Medicine
More information about the Rcpp-devel