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'
n
value. The page has ~1000 lines butreadLines
seems to be reading only the first line. Was wondering how to fix this. – Code_Sipra Nov 17 '17 at 18:55