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)"

You may also need to install pandoc  via apt-get, part of Code Ocean's custom package management system.

Did this answer your question?