> 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
> [email protected]
> 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: [email protected]
-----------------------------------------------
_______________________________________________
Rcpp-devel mailing list
[email protected]
https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel

Reply via email to