title: Difference between paste and print (affecting result of function)
body: <p>To start off, I'm not really sure what the difference between paste and print is. But I am using "print" to spit out generic statements and "paste" to spit out statements that use/ reference specific variables.</p>
  
  <p>My issue is that when using <code>paste</code> within a function, I am losing my pasted output if there is anything included in the function following the "<code>paste</code>" statement.</p>
  
  <p>Please see the following three functions:</p>
  
  <pre><code>TS&lt;-5
  </code></pre>
  
  <p>Example 1- everything works fine</p>
  
  <pre><code>T&lt;-function(){
  
  if(exists("TS"))
  {paste("TS= ", TS, sep=" ")}
  
  else
  
  if(!exists("TS"))
  {print.noquote("No TS Values")}
  
  }
  </code></pre>
  
  <p>Example 2- My Problem. When I add anything (in this case another print command) following my "if" statement I will lose my pasted output</p>
  
  <pre><code>T&lt;-function(){
  
  if(exists("TS"))
  {paste("TS= ", TS, sep=" ")}
  
  else
  
  if(!exists("TS"))
  {print.noquote("No TS Values")}
  
  print("my exsistance removes paste output") 
  
  }
  </code></pre>
  
  <p>Example 3- The same statement placed before the "if" has no negative effect</p>
  
  <pre><code>T&lt;-function(){
  
  print("my exsistance does not remove paste output")
  
  if(exists("TS"))
  {paste("TS= ", TS, sep=" ")}
  
  else
  
  if(!exists("TS"))
  {print.noquote("No TS Values")}
  
  
  }
  </code></pre>
  
  <p>Can someone explain where the conflict is within this function. And better yet how can I work around it so that I can have a <code>paste</code> statement followed by other actions within a function </p>
  
  <blockquote>
    <p>basically how can I get example #2 to work.</p>
  </blockquote>
  
  <p>Brownie points- (for sake of visual consistency) when using "print.noquote", is there such a thing as a paste.noquote?</p>