SMAA implementation for R