title: R - Insert newline in a variable (not for printing purposes)
body: <p>So here's the problem
  There's a requirement to input newline (to process URL), </p>
  
  <p>Basically it's like this in Python:</p>
  
  <pre><code>canonical_request = method + '\n' + canonical_uri + '\n' + canonical_querystring
  </code></pre>
  
  <p>I have tried using <code>paste</code> but whenever I use "\n" this character is included in the string. </p>
  
  <p>I know a lot of people recommended <code>cat</code> but cat is for printing purposes, therefore you can make it into a variable such as</p>
  
  <pre><code>canonical_request &lt;- cat(method, "\n", canonical_uri, "\n", canonical_querystring)
  </code></pre>
  
  <p>if you call canonical_request this way, it will give <code>NULL</code> </p>
  
  <p>Do you know how to insert newline (by concatenating characters) in R?</p>
  
  <p>ps. it's different from question here:
  <a href="https://stackoverflow.com/questions/26022378/r-new-line-in-paste-function">R - new line in paste() function</a>
  (OP doesn't state clearly the purposes of new line usage, I'm assuming it's for printing purposes)</p>