Tool

Build a R Package with Rcpp in 30 minutes

Rcpp is package with which you could write c++ code within R. You could simply write a inline C++ code in R like this: library(Rcpp) # Define a Rcpp function add_vec <- Rcpp::cppFunction( 'Rcpp::NumericVector add_vec( Rcpp::NumericVector a, Rcpp::NumericVector b){ return a+b; }' ) # See the result t(add_vec(c(1,2,3), c(2,3,4))) Or you could save your .