title: Incomplete final line found error when reading url using readLines() in R
body: <p>I am trying to read the html content of a url using the readLines() function in R. However, I am getting a <code>"incomplete final line found"</code> warning message as shown below? How can I skip the final line in such a case? Any suggestions would be very much appreciated.</p>
  
  <pre><code>x &lt;- readLines("https://in.finance.yahoo.com/industries/technology")
  
  Warning message:
  In readLines("https://in.finance.yahoo.com/industries/technology") :
    incomplete final line found on 'https://in.finance.yahoo.com/industries/technology'
  </code></pre>