Lately I have been struggling to find a way to accomplish a line break in an R Markdown Report / Notebook. It is in fact described in the RStudio documentation, but it is rather difficult to find and not so well explained. This is what they have to say about it:
A backslash followed by a newline is also a hard line break.
Easy to overlook, and perhaps not so pedagogical.
What they mean is this:
\⎵⎵
That is, a backslash ( \ ) followed by two space characters ( ⎵⎵ ).
Enjoy!
I like to use , because you can add multiple break lines in just one line of code. For example, three breaks would be:
I like to use “”, because it allows to add multiple breaks in one line of code. For example, three breaks would be: “”