knitr::opts_chunk$set(echo = FALSE)
This is a template Rmd for rendering a MS Word document with custom styles, including
Now knit this doc, and edit to update the styles in the resulting docx file. Then rename as 'template' and use this in the yml of the main Rmd:
output: word_document: reference_docx: templates/template.docx
See here for more information: http://rmarkdown.rstudio.com/articles_docx.html
summary(cars)
You can also embed plots, for example:
plot(pressure)
Note that the echo = FALSE
parameter was added to the code chunk to prevent printing of the R code that generated the plot.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.