title: Unable to import JSON file in R
body: <pre><code>library(jsonlite)
  post &lt;- stream_in(file("posts.json"))
  </code></pre>
  
  <p>opening file input connection.</p>
  
  <blockquote>
    <p>Error: parse error: premature EOF
                                           {
                         (right here) ------^ closing file input connection.</p>
  </blockquote>
  
  <p>I am getting this error.</p>