Make sure R package Rcpp has been installed. On Windows, Rtools https://cran.r-project.org/bin/windows/Rtools/ is needed. run R/testWeightedEnetVSglmnet.R