How to add whitespace to an RMarkdown document?

To create vertical space (Markdown to PDF), I use  

This command works like \vspace{12pt} for latex.


You can use latex inside your Rmd file. To have a page break, just add \newpage.

example.Rmd

Title
====================

This is a test Rmd document. 

\newpage

Second page
====================

This text is on the second page

You make a pdf using render("example.Rmd", output_format='pdf_document')

Hope it helps,

alex


Another easy way to do this is to just use HTML tags. Adding <br> will give a single line break and I've used that when, for whatever reason, using the (two-space indentation) is ignored.