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.
CodePudding user response:
In a code chunk at the top of your document, you can write e.g.
knitr::opts_chunk$set(comment = "")
The default is comment = "##"
.
CodePudding user response:
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