André Costa
André Costa

Reputation: 377

How to change 'eval' output format in a document. (remove the ##)

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

Answers (1)

Ralf Stubner
Ralf Stubner

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

Related Questions