Made a lot of progress with automating the stats generation. Rscript
called via Runtime.getRuntime().exec with command line arguments