initial finished R interface, require Rcpp, wait for packaging