title: Handling 404 and other bad responses with looping twitteR queries
body: <p>I would like it if my loop wouldn't break if I get an error.  I want it to just move on to the next iteration.  This example is a minimal example of the error I'm getting and the loop breaking.  In my real application I'm iterating through some of the followers I've generated from another script. </p>
  
  <pre><code>library(twitteR)
  #set oauth...
  for(i in 1:10) {
  + x &lt;- getUser("nalegezx") }
  </code></pre>
  
  <blockquote>
    <p>Error in twInterfaceObj$doAPICall(paste("users", "show", sep = "/"), params = params,  : 
          client error: (404) Not Found</p>
  </blockquote>
  
  <p>I understand that this loop would simply rewrite the same response to x. I'm just interested in not breaking the loop. </p>