adding R version of file