title: print entire string to console without truncating and without adjusting a global setting
body: <p>I have read these SO posts on getting rstudio to print out without truncating:</p>
  
  <p><a href="https://stackoverflow.com/questions/28895044/list-output-truncated-how-to-expand-listed-variables-with-str-in-r">list output truncated - How to expand listed variables with str() in R</a></p>
  
  <p><a href="https://stackoverflow.com/questions/36800475/avoid-string-printed-to-console-getting-truncated-in-rstudio">avoid string printed to console getting truncated (in RStudio)</a></p>
  
  <p>The answers there involve making a adjustment to studio settings which would then cover all future outputs to the console.</p>
  
  <p>Is there a ad hoc way to get r to print an entire string to the console?</p>
  
  <p>I tried:</p>
  
  <pre><code>library(tidyverse)
  library(foreach)
  
  mystring &lt;- foreach(i = 1:52) %do% {
    paste0("'_gaWeek",i,"'!A16:B;")
  } %&gt;% unlist %&gt;% toString()
  
  print(mystring, len = length(mystring))
  
  &gt; print(mystring, len = length(mystring))
  [1] "'_gaWeek1'!A16:B;, '_gaWeek2'!A16:B;, '_gaWeek3'!A16:B;, '_gaWeek4'!A16:B;, '_gaWeek5'!A16:B;, '_gaWeek6'!A16:B;, '_gaWeek7'!A16:B;, '_gaWeek8'!A16:B;, '_gaWeek9'!A16:B;, '_gaWeek10'!A16:B;, '_gaWeek11'!A16:B;, '_gaWeek12'!A16:B;, '_gaWeek13'!A16:B;, '_gaWeek14'!A16:B;, '_gaWeek15'!A16:B;, '_gaWeek16'!A16:B;, '_gaWeek17'!A16:B;, '_gaWeek18'!A16:B;, '_gaWeek19'!A16:B;, '_gaWeek20'!A16:B;, '_gaWeek21'!A16:B;, '_gaWeek22'!A16:B;, '_gaWeek23'!A16:B;, '_gaWeek24'!A16:B;, '_gaWeek25'!A16:B;, '_gaWeek26'!A16:B;, '_gaWeek27'!A16:B;, '_gaWeek28'!A16:B;, '_gaWeek29'!A16:B;, '_gaWeek30'!A16:B;, '_gaWeek31'!A16:B;, '_gaWeek32'!A16:B;, '_gaWeek33'!A16:B;, '_gaWeek34'!A16:B;, '_gaWeek35'!A16:B;, '_gaWeek36'!A16:B;, '_gaWeek37'!A16:B;, '_gaWeek38'!A16:B;, '_gaWeek39'!A16:B;, '_gaWeek40'!A16:B;, '_gaWeek41'!A16:B;, '_gaWeek42'!A16:B;, '_gaWeek43'!A16:B;, '_gaWeek44'!A16:B;, '_gaWeek45'!A16:B;, '_gaWeek46'!A16:B;, '_gaWeek47'!A16:B;, '_gaWeek48'!A16:B;, '_gaWeek49'!A16:B;, '_gaWeek50'!A16:B;, '_ga... &lt;truncated&gt;
  </code></pre>
  
  <p>It's truncated. Is there an ad hoc way around this without changing rstudio settings? Such as by a function argument? I tried <code>print()</code> here.</p>
  
  <p>Also, how do I get rid of the comma separator in between each instance above?</p>