added R code to gh-pages