title: trying to use fread() on .csv file but getting internal error "ch>eof"
body: <p>I am getting an error from fread: </p>
  
  <blockquote>
    <p>Internal error: ch>eof when detecting eol</p>
  </blockquote>
  
  <p>when trying to read a csv file downloaded from an https server, using R 3.2.0.   I found something related on Github, <a href="https://github.com/Rdatatable/data.table/blob/master/src/fread.c" rel="nofollow">https://github.com/Rdatatable/data.table/blob/master/src/fread.c</a>, but don't know how I could use this, if at all.  Thanks for any help.</p>
  
  <p>Added info:  the data was downloaded from here:</p>
  
  <pre><code>fileURL &lt;- "https://d396qusza40orc.cloudfront.net/getdata%2Fdata%2Fss06pid.csv"
  </code></pre>
  
  <p>then I used</p>
  
  <pre><code>download.file(fileURL, "Idaho2006.csv", method = "Internal") 
  </code></pre>