Solution in comments!
I'd like to have a template for the rmd file and have the template filled in with content, both R code chunks and regular text, according to the content of the spreadsheet.
| Content to be used in code chunk | Text to be pasted after code chunk |
|---|---|
| Parametrized code 1 | Description of event 1 |
| Parametrized code 2 | Description of event 2 |
Rmd output:
"""{r, echo = FALSE, comment = NA}
set.seed(rand_seed)
parametrized code 1
"""
Description of event 1
Thanks for your help!