R script and Stat DO files