I am using blogdown to create content for the web. Often, I need to include some chunk of content coming from an .Rmd
snipped (markdown + R computation).
Context
For example, I have this common content in common.Rmd
:
The **correlation** between the terms of topic `A` and topic `B` is as follows:
```{r}
kendall.tau(x,y)
```
Some more text here...
And then I have file content1.Rmd
:
The two data sets are similar to topic `A` and `B`:
<reference 'common.Rmd' here>
Bla bla...
Question
How do I include .Rmd
files so that their output is placed exactly where I want in another .Rmd
file?