Comment out text in R Markdown (Rmd file)

aonan zhang picture aonan zhang · Jun 11, 2013 · Viewed 73.8k times · Source

In an R Markdown (.Rmd) file, how do you comment out unused text? I'm not referring to the text in the R code chunk, but the general texts, like % in LaTex for example.

Answer

user1981275 picture user1981275 · Jun 11, 2013

I think you should be able to use regular html comments:

<!-- regular html comment --> 

Does this work for you?