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

Krzysztof Sakrejda krzysztof.sakrejda at gmail.com
Tue Jun 17 12:36:43 CEST 2014

> 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.")

I would be curious to hear if there is a better way. Krzysztof

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


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