DarkMatter in Cyberspace
  • Home
  • Categories
  • Tags
  • Archives

Add Comments In R Markdown


There are some options to add comments in R Markdown file:

In RStudio, comment/uncomment lines with Ctrl-Shift-c:

<!-- Add some comments here -->

Option 2:

---
Add your comments here:
Paragraph 1
Paragraph 2
---

Option 3:

Hide text with:

r if(FALSE){" Add your comments here"}

Show text with:

r if(TRUE){" Add your comments here"}

There are 2 options to add small font texts in R Markdown file:

With <sub> + <sup>:

Normal text
<sub><sup>Small text</sup></sub>
<sub><sup><sub><sup>Tiny text</sup></sub></sup></sub>
<sub><sup><sub><sup><sub><sup><sub><sup><sub><sup><sub><sup><sub><sup><sub><sup>REALLY SMALL TEXT</sup></sub></sup></sub></sup></sub></sup></sub></sup></sub></sup></sub></sup></sub></sup></sub>

With <small>: <small>Small text</small>.

Ref:

  • Markdown extension for really small tiny text?

  • Conditionally display a block of text in R Markdown



Published

Apr 11, 2019

Last Updated

Apr 11, 2019

Category

Tech

Tags

  • R 5
  • rmarkdown 1

Contact

  • Powered by Pelican. Theme: Elegant by Talha Mansoor