I read in Hadley Wickham's book that RObjects should be declared as S-expressions (SEXP) in R's C API:
SEXP x( SEXP a, SEXP b {
}
In Rcpp, however, it seems this necessity is over. In other words, functions should be declared with some defined datatype, for example:
NumericVector x(NumericVector a, NumericVector b) {
}
Are there examples where SEXP declarations are still useful in Rcpp's context?