R script and output dataset updates