I am trying to read the html content of a url using the readLines() function in R. However, I am getting a "incomplete final line found" warning message as shown below? How can I skip the final line in such a case? Any suggestions would be very much appreciated.
x <- 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'