Added links to R code