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.

cheers,

Martin

-- 
Martin Jakt
Department of Systems Medicine
Mitsunada Sakaguchi Laboratory
Keio University School of Medicine
_______________________________________________
Rcpp-devel mailing list
[email protected]
https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel

Reply via email to