create the R file