title: Stop recycling in R
body: <p>In order to better understand R, I'm working on a toy example. In particular, I'm trying to force R not to perform recycling so that an error is produced while summing</p>
  
  <pre><code>(1:2) + 1.
  </code></pre>
  
  <p>I tried:</p>
  
  <pre><code>1:2 + I(1)
  </code></pre>
  
  <p>then, just to check since it seems related, I tried</p>
  
  <pre><code>"+"(1, I(TRUE))
  </code></pre>
  
  <p>but that works fine too, suggesting to me that the class is unrelated to the coercion and perhaps the recycling. I couldn't figure out where/how the length of an atomic vector is stored, either. </p>
  
  <p>Do you perhaps know of some way to keep this recycling from happening? From what I understand, R does all of its recycling/coercion before its internal C code runs, but I can't figure out where that's happening to stop it.</p>