This files defines the R function vecfunc passed down to C++ and called via the wrapper function built using the sub-class of RcppFunction to call it.