R Markdown - Dynamic Documents for R

Follow

R Markdown is an authoring format that enables easy creation of dynamic documents, presentations, and reports from R. It combines the core syntax of markdown (an easy-to-write plain text format) with embedded R code chunks that are run so their output can be included in the final document. R Markdown documents are fully reproducible (they can be automatically regenerated whenever underlying R code or data changes).

To learn how to use R Markdown, visit our extensive R Markdown development center at rmarkdown.rstudio.com.

 

There you will find an introduction to R Markdown, as well as:

For even more in-depth documentation see:

  • The website for the knitr package. Knitr is an extremely powerful tool for dynamic content generation and the website has a wealth of documentation and examples to help you utilize it to its full potential.

  • The full specification of Pandoc Markdown, which describes all of the markdown features and syntax available within R Markdown documents.

  • If you are migrating documents from R Markdown v1 or wish to continue using RMarkdown v1 see the article on Migrating from R Markdown v1.

See also the R Markdown developer documentation including:

 

Comments

  • Avatar
    Himanshu B Dave

    While using RMarkdown in RStudio, with R-3.1.2, I found the following bug:
    Symptom: would not generate a PDF document.
    Error: the file rmarkdown/rmd/latex/default.tex has a wrong spelling for:
    \UseMicroTypeSet (it was \UseMicrotypeSet)

    After correcting in the above file PDF generation was smooth.

  • Avatar
    Himanshu B Dave

    While using RMarkdown in RStudio, with R-3.1.2, I found the following bug:
    Symptom: would not generate a PDF document.
    Error: the file rmarkdown/rmd/latex/default.tex has a wrong spelling for:
    \UseMicroTypeSet (it was \UseMicrotypeSet)

    After correcting in the above file PDF generation was smooth.