title: Format print statement
body: <p>I would like to format output of a print statement so that elements in the print statement 
  are separated by a small uniform gap, a gap of either 1, 3 or 5 empty spaces.  Is that
  possible?</p>
  
  <p>In the example below, I think all of the elements in the print statement are assumed to be 
  as long as the first element in the print statement (here either as long as <code>aa1</code> or <code>aa2</code>).</p>
  
  <p>The <code>print.gap</code> statement does not result in the desired format.  It simply adds an 
  additional constant number of spaces between each element.</p>
  
  <pre><code>aa1 &lt;- 'abcdefghijklmnopqrstuvwxyz'
  aa2 &lt;- 'abc'
  
  bb  &lt;- 10
  cc  &lt;- 222
  
  print(c(aa1,bb,cc))
  
  # [1] "abcdefghijklmnopqrstuvwxyz" "10"                         "222" 
  
  print(c(aa2,bb,cc))
  
  # [1] "abc" "10"  "222"
  
  # desired output:
  
  # [1] "abcdefghijklmnopqrstuvwxyz"   "10"   "222" 
  #
  # or
  #
  # [1] "abcdefghijklmnopqrstuvwxyz"   10   222 
  </code></pre>
  
  <p>Thank you for any advice.  Perhaps I must use a <code>cat</code> statement and <code>sprintf</code> instead of a <code>print</code> statement.  Maybe some variation of this: <a href="https://stackoverflow.com/questions/3516008/how-to-print-r-variables-in-middle-of-string">How to print R variables in middle of String</a></p>