title: How to properly display newlines in an R string?
body: <p>Here is some R code that shows newlines in a string become <code>\n</code>.</p>
  
  <pre><code>&gt; foo &lt;- "foo
  + bar"
  &gt; foo
  [1] "foo\nbar"
  &gt; print(foo)
  [1] "foo\nbar"
  </code></pre>
  
  <p>How can I get the printed output to show the newlines?  That is:</p>
  
  <pre><code>foo
  bar
  </code></pre>