updated Rscript boilerplate