added direct links to R code in the repo