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

Enjoy!

Share and Enjoy
  • Facebook
  • Twitter
  • LinkedIn
  • del.icio.us
  • StumbleUpon
  • RSS
  • email
  • PDF

Published by

Samuel

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

2 thoughts on “Line Break in R Markdown Reports / R Notebooks”

Leave a Reply to Masood Sadat Cancel reply

Your email address will not be published. Required fields are marked *