For the particular case of 'not finite' on floats I also found that I could resort to the standard NaN which IEEE arithmetic supports. Of course, this will then be a NaN in R and not a NA where you might want the latter. But at least it stays cleanly away from R which may help in the multithreaded contexts.
Dirk -- http://dirk.eddelbuettel.com | @eddelbuettel | e...@debian.org _______________________________________________ Rcpp-devel mailing list Rcpp-devel@lists.r-forge.r-project.org https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel