Reputation: 377
When R-Markdown output a chunk result, it insert a ## before the result.
I would like to know how could I change the default result format, specially how to change the double hashtag for another symbol (to not make beginners confused with the code comments).
Upvotes: 0
Views: 117
Reputation: 26843
You can change this within a setup chunk, e.g.
```{r setup, include = FALSE}
knitr::opts_chunk$set(comment = "#>")
```
will prefix #>
instead of ##
.
Upvotes: 1