[Rcpp-devel] api/meat/is.h missing CharacterVector and CharacterMatrix

Thomas Tse tommy_228_228 at yahoo.com.hk
Wed Oct 2 04:12:40 CEST 2013


hi,

seems like api/meat/is.h missed the implementation for CharacterVector and CharacterMatrix, i.e. we should add:

    template <> inline bool is__simple<CharacterVector>( SEXP x ){
        return TYPEOF(x) == STRSXP ;
    }
    template <> inline bool is__simple<CharacterMatrix>( SEXP x ){
        return TYPEOF(x) == STRSXP && is_matrix(x) ;
    }

thanks,
Thomas


More information about the Rcpp-devel mailing list