title: Printing out from paste0() one on the top of another one as character class
body: <p>I would like to print out values from a vector in a certain way.</p>
  <p>Here is the dataset:</p>
  <pre><code>vars &lt;- c(&quot;1234_AS_SA1_PCNS&quot;,&quot;2345_AS_SA2_UDA&quot;, &quot;3823_AS_SA3_CL&quot;)
  </code></pre>
  <p>I would like to add <code>,</code> between the values and print them on the top of each other with a class of character.</p>
  <p>I tried this but this did not do the job:</p>
  <pre><code>paste0(vars, collapse=&quot;, &quot;)
  
  [1] &quot;1234_AS_SA1_PCNS, 2345_AS_SA2_UDA, 3823_AS_SA3_CL&quot;
  </code></pre>
  <p>I included <code>collapse = &quot;,\n&quot;</code> to hit <code>Return</code> but that gave me this:</p>
  <pre><code>[1] &quot;1234_AS_SA1_PCNS,\n2345_AS_SA2_UDA,\n3823_AS_SA3_CL&quot;
  </code></pre>
  <p>My desired output is:</p>
  <pre><code>[1] &quot;1234_AS_SA1_PCNS, 
       2345_AS_SA2_UDA, 
       3823_AS_SA3_CL&quot;
  </code></pre>
  <p>How can I achieve my desired output?</p>