From the course: Creating Reports and Presentations with R Markdown and RStudio

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Overriding Markdown in .Rmd files

Overriding Markdown in .Rmd files - RStudio Tutorial

From the course: Creating Reports and Presentations with R Markdown and RStudio

Start my 1-month free trial

Overriding Markdown in .Rmd files

- [Instructor] It's important to note that everything in your R Markdown file outside of code junks and the YAML header is interpreted as Markdown. That's nice because it allows us to format text easily with Markdown. But sometimes we want to insert verbatim HTML or LaTeX. There are two primary reasons for that. One, we might want to just display the HTML or LaTeX, without it being interpreted as Markdown, because we want to include a code example in our report or in our presentation. And secondly, and more importantly, we might actually want to run HTML or LaTeX code so that we can customize the appearance of our document, and we need to tell the R Markdown parser, don't treat this as Markdown, treat it as either LaTeX or HTML.

Contents