Moving from sourceCpp to a package w/Rcpp
I currently have a .cpp file that I can compile using sourceCpp() . As expected the corresponding R function is created and the code works as expected. Here it is: #include <Rcpp.h> using namespace Rcpp; // [[Rcpp::export]] NumericVector exampleOne(NumericVector vectorOne, NumericVector vectorTwo){ NumericVector outputVector = vectorOne + vectorTwo; return outputVector; } I am now converting my project over to a package using Rcpp . So I created the skeleton with rStudio and started looking at how to convert things over. In Hadley's excellent primer on Cpp , he says in section "Using Rcpp in a