title: Error in twFromJSON(out) - R twitteR package
body: <p>I have searched extensively online but am still unable to find a work-around for the following error whilst using the 'twitteR' package in R:</p>
  
  <pre><code>"Error in twFromJSON(out) : 
  Error: Malformed response from server, was not JSON.
  The most likely cause of this error is Twitter returning a character which
  can't be properly parsed by R. Generally the only remedy is to wait long
  enough for the offending character to disappear from searches (e.g. if
  using searchTwitter())."    
  </code></pre>
  
  <p>It comes after running the following code:</p>
  
  <pre><code># Clear the previously used libraries
  rm(list=ls())
  
  #Set Working Directory
  setwd("C:/Users/toshiba/Google Drive/Programming/Projects/HDS/Shiny/Twitter")
  
  #Load Libraries
  library (twitteR)
  library (RJSONIO)
  library (dismo)
  library (maps)
  library (ggplot2)
  library (XML)
  load("twitteR_credentials")
  registerTwitterOAuth(twitCred)
  ##############################Start App########################################
  start_date = '2014-10-10'
  end_date = toString(as.Date(start_date)+1)
  
  #Search for tweets containing ebola - only goes back 8 days including today
  ebolaTweets &lt;- searchTwitter("ebola", 
                               n = 1250,
                               since=start_date,
                               until=end_date,
                               cainfo="cacert.pem")
  tweetFrame &lt;- twListToDF(ebolaTweets) # convert to dataframe
  </code></pre>
  
  <p>Is it not possible to somehow skip the offending tweet instead of breaking the loop?</p>
  
  <p>Any help is much appreciated!</p>