Something like: - https://www.r-bloggers.com/2015/09/passing-arguments-to-an-r-script-from-command-lines/