add R script and output file