Creating more flexible launchers using and R script