add rcpp function into packages