> I've just commited some code that will help us identify if a given R object > (a SEXP) can be seen as a given c++ type (e.g. IntegerVector, etc ...) > > Works like this: > > SEXP x ; // a SEXP from somewhere, or an RObject > is<IntegerVector>( x ) ; > is<int>( x ) ; > is<DataFrame>( x ) ;
Nice! Combining this with attribute support would be awesome. Hadley -- Chief Scientist, RStudio http://had.co.nz/ _______________________________________________ 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