Final R version
Shell script to run