Create R code file