Rcpp11 / attributes

Standalone implementation of Rcpp attributes.
Other
3 stars 1 forks source link

compileAttributes doesn't handle Dots, NamedDots #26

Closed kevinushey closed 10 years ago

kevinushey commented 10 years ago

E.g. for this function:

// [[Rcpp::export]]
int countArgs(Dots dots){
    return dots.size() ;    
}

We should generate:

countArgs <- function(...) {
    .Call('RcppTest_countArgs', PACKAGE = 'RcppTest', environment())
}

instead of

countArgs <- function(dots) {
    .Call('RcppTest_countArgs', PACKAGE = 'RcppTest', dots)
}

So I guess we need to special case Dots and NamedDots.