This is an example Reversible R Markdown document. It will preserve code
elements for restoration in your final .docx
file.
You can use things like inline comments.
You can use code chunks to generate output and they will be restored:
summary(cars)
# A non-included chunk to provide inline chunks with values. a <- 2 b <- 3
You can include calculations inline like so: r a
plus
r b
equals r a + b
. Even empty inline
chunks r NULL
will be stored and marked with hidden text in
the Word document.
You can of course also embed plots, for example:
plot(pressure)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.