Losing R-Markdown title when automating knitting

This question already has an answer here:


ANSWERS:


RStudio answers that here. You can see the template they use at this gist, and if you look at the markdown generation pane you'll see that eventually a wicked long pandoc call is made:

/usr/local/bin/pandoc forso.utf8.md 
  --to html 
  --from markdown+autolink_bare_uris+ascii_identifiers+tex_math_single_backslash-implicit_figures 
  --output forso.html 
  --smart 
  --email-obfuscation none 
  --self-contained 
  --standalone 
  --section-divs 
  --template /Library/Frameworks/R.framework/Versions/3.2/Resources/library/rmarkdown/rmd/h/default.html 
  --variable 'theme:bootstrap' 
  --include-in-header /var/folders/2d/r3dsy9j17lqcctq5k0hmmg040000gn/T//RtmptThd32/rmarkdown-str16cec488b85bd.html 
  --mathjax --variable 'mathjax-url:https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML' 
  --no-highlight 
  --variable highlightjs=/Library/Frameworks/R.framework/Versions/3.2/Resources/library/rmarkdown/rmd/h/highlight 

Dig into that similar output on your own system to see what else you need to pass to your own custom renderer to get the desired output.



 MORE:


 ? output markdown in r code chunk
 ? Conditionally display block of markdown text using knitr
 ? Shiny output and R MarkDown render_site()
 ? R Markdown and htmlTable. How to generate html tables in a loop in R Markdown?
 ? Problems using ggvis in rMarkdown with variables
 ? How to embed ggvis interactive charts in RMarkdown?
 ? Sourcing external R scripts that rely on a variable set in the master/main Shiny document
 ? Shiny Presentation (ioslides): Custom CSS and logo
 ? Create documentation notebook for Shiny app files
 ? Full size shiny app in an ioslides markdown presentation slide