Rich
Rich

Reputation: 141

How do I remove '##' symbol that appears in Rmarkdown while printing console output?

Is there any nicer way to display console output without '##' symbol in pdf generated by Rmarkdown

I have tried searching around here and googling for a solution, but I haven't found anything that solves my problem.

Upvotes: 1

Views: 509

Answers (2)

flopeko
flopeko

Reputation: 159

Use knitr::opts_chunk$set(comment = NA) or {r chunk1, comment = NA} in the chunk options if you don't want to set it globally

Upvotes: 1

Kieran
Kieran

Reputation: 1223

In a code chunk at the top of your document, you can write e.g.


knitr::opts_chunk$set(comment = "")

The default is comment = "##".

Upvotes: 3

Related Questions