title: Error in fromJSON(paste(raw.data, collapse = "")) : unclosed string
body: <p>I am using the R package <code>rjson</code> to download weather data from Wunderground.com. Often I leave the program to run and there are no problems, with the data being collected fine. However, often the program stops running and I get the following error message:</p>
  
  <pre><code>Error in fromJSON(paste(raw.data, collapse = "")) : unclosed string
  In addition: Warning message:
  In readLines(conn, n = -1L, ok = TRUE) :
    incomplete final line found on 'http://api.wunderground.com/api/[my_API_code]/history_20121214pws:1/q/pws:IBIRMING7.json'
  </code></pre>
  
  <p>Does anyone know what this means, and how I can avoid it since it stops my program from collecting data as I would like?</p>
  
  <p>Many thanks,</p>
  
  <p>Ben</p>