As you will see in this published capsule,  Rmd files are rendered via Rmarkdown::render  in a shell script. 

For example:
Rscript -e "rmarkdown::render(input = 'analysis.rmd', output_dir = '../results', clean = TRUE)".

Did this answer your question?