title: Write lines of text to a file in R
body: <p>In the R scripting language, how do I write lines of text, e.g., the following two lines</p>
  <pre><code>Hello
  World
  </code></pre>
  <p>to a file named &quot;output.txt&quot;?</p>