Theo Pepler

Home | Research | Teaching | Software | Links | HOWTO's

HOWTO: RENDER AN R MARKDOWN DOCUMENT FROM THE COMMAND LINE

  1. You should have pandoc installed on the system. You can check this with

    which pandoc

    or install it with

    sudo apt install pandoc

  2. Then from the command line, use

    Rscript -e "rmarkdown::render('inputfile.Rmd')"

    where inputfile.Rmd is the R markdown file you want to produce output for.