'How to add a line break in Rmarkdown code?
I have an rmarkdown document with this:
`r {"### MyHeading"}`
I would like to add a line break after this (no text, just an empty line). How can I accomplish this by just editing the existing block of code and not adding another? i.e. is there something like this:
`r {"### MyHeading"} `
This fails and says object 'nbsp' not found.
Solution 1:[1]
Use <br/>'s inside the Markdown/HTML block:
`r {"### MyHeading<br/><br/><br/>"}`
Note that the you were adding was outside, not inside the double quotes.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | adelriosantiago |

