Hi all,

Am I doing something wrong with the functions below, or has this
behaviour not yet been implemented in Rcpp?

    cppFunction('std::string first_char(CharacterVector x) {
      return x[0];
    }')

    cppFunction('CharacterVector miss_c() {
      return CharacterVector::create(NA_STRING);
    }')

Hadley

-- 
RStudio / Rice University
http://had.co.nz/
_______________________________________________
Rcpp-devel mailing list
[email protected]
https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel

Reply via email to