I have a file on my desktop that's an HTML file. (In chrome, I right-clicked on the web page, chose "save-as" and then "Webpage, HTML"). How can I read this local file into R? Once in R I'm going to need to write some regular expressions to parse the strings and extract certain values.
use readLines
as follows
rawHTML <- paste(readLines("path/to/file.html"), collapse="\n")
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With