An R export option has been added to the statistical export section, addresses #151.

Thanks to @mcailler for the template R script