title: How to code and print a character string formatted with line breaks?
body: <p>If I have a string that contains line breaks, how can I code it in R without manually adding <code>\n</code> between lines and then print it with the line breaks? There should be multiple lines of output; each line of the original string should print as a separate line.</p>
  <p>This is an example of how to do the task in Python:</p>
  <pre><code>string = &quot;&quot;&quot;
    Because I could
    Not stop for Death
    He gladly stopped for me
    &quot;&quot;&quot;
  </code></pre>
  <p>Example use case: I have a long SQL code with a bunch of line breaks and sub-commands. I want to enter the code as a single string to be evaluated later, but cleaning it up by hand would be difficult.</p>