title: Writing extended piece of text using paste() in R
body: <p>I'm trying to <code>paste</code> all the following <code>paste0</code>s as one connected piece of text. But I also need to have each on a separate line, one after the other, like:</p>
  
  <p><code>"CI=~Q1+Q2+Q3+Q4+Q5+Q6
  ESC=~Q7+Q8+Q9+Q10+Q11+Q12
  ICp=~Q13+Q14+Q15+Q16+Q17+Q18
  .
  .
  . "</code></p>
  
  <p>I tried creating the object <code>model</code> to achieve my goal. All works fine EXCEPT that each <code>paste0</code> is not on a separate line. </p>
  
  <p>Is there a fix for that in BASE R?</p>
  
  <pre><code>CI &lt;- paste0("CI=~", paste0("Q", 1:6, collapse = "+"))
  
  ESC &lt;- paste0("ESC=~", paste0("Q", 7:12, collapse = "+"))
  
  ICp &lt;- paste0("ICp=~", paste0("Q", 13:18, collapse = "+"))
  
   LC &lt;- paste0("LC=~", paste0("Q", 19:24, collapse = "+"))
  
   CR &lt;- paste0("CR=~", paste0("Q", 25:30, collapse = "+"))
  
   ASE &lt;- paste0("ASE=~", paste0("Q", 31:36, collapse = "+"))
  
   SOM &lt;- paste0("SOM=~", paste0("Q", 37:42, collapse = "+"))
  
   UP &lt;- paste0("UP=~", paste0("Q", 43:48, collapse = "+"))
  
   VL &lt;- paste0("VL=~", paste0("Q", 49:54, collapse = "+"))
  
   model &lt;- paste(CI, ESC, ICp, LC, CR, ASE, SOM, UP, VL, sep = "\n")
  </code></pre>