Line Break in R Markdown Reports / R Notebooks

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 ( ⎵⎵ ).


VN:F [1.9.22_1171]
Rating: 5.0/5 (1 vote cast)
Line Break in R Markdown Reports / R Notebooks, 5.0 out of 5 based on 1 rating
Share and Enjoy
  • Facebook
  • Twitter
  • LinkedIn
  • StumbleUpon
  • RSS
  • email
  • PDF

Published by


Ph.D. Student in the Department of Computer and Systems Sciences, Stockholm University.

Leave a Reply

Your email address will not be published.