title: Convert an integer to a string in R
body: <p>I have an integer</p>
  
  <pre><code>a &lt;- (0:3)
  </code></pre>
  
  <p>And I would like to convert it to a character string that looks like this</p>
  
  <pre><code>b &lt;- "(0:3)"
  </code></pre>
  
  <p>I have tried</p>
  
  <pre><code>as.character(a)
  [1] "0" "1" "2" "3"
  </code></pre>
  
  <p>and </p>
  
  <pre><code>toString(a)
  [1] "0, 1, 2, 3"
  </code></pre>
  
  <p>But neither do exactly what I need to do. </p>
  
  <p>Can anyone help me get from a to b?</p>
  
  <p>Many thanks in advance!</p>