added R package

initial commit of R code