Hi,
Yes so you have an R script like this:
myJob.R
rmarkdown::render("MyDocument.Rmd", params = list(
year = 2017,
region = "Asia",
printcode = FALSE,
file = "file2.csv"
))
Then you can call this script from any terminal
Rscript /path/to/script/myJob.R
And it will generate the Markdown
Or if you don't have any parameters you need to set you can combine it
Rscript -e "rmarkdown::render(\"MyDocument.Rmd\")"
PJ