In summary, I am using my script 'Graphs.R' on 'input_file1.txt' in RStudio to create a Rmd which I then knit to html. I would like to automate this process to run more files on the command line.
So far, I can get the Rscript to run on the command line using:
Rscript Graphs.R input_file1.txt
I also know that I can create an .RMD file using:
Rscript -e rmarkdown::render(Graphs.R)
However, I would like to do the following:
Rscript -e rmarkdown::render('Graphs.R input_file1.txt', 'output_file.Rmd')
are there any ideas as how to do this?