title: What is the difference between cat and print?
body: <p><code>cat</code> and <code>print</code> both seem to offer a "print" functionality in R.</p>
  
  <pre><code>x &lt;- 'Hello world!\n'
  cat(x)
  # Hello world!
  print(x)
  # [1] "Hello world!\n"
  </code></pre>
  
  <p>My impression is that <code>cat</code> most resembles the typical "print" function. When do I use <code>cat</code>, and when do I use <code>print</code>?</p>