There’s more…

The readLines() function can read the source code of a web page as you have seen in this example. This function also reads data from a file stored into the local computer. To read the data from the local file, you have to create the connection using the file() function instead of url(). The url() function is specific to creating a connection with a web page, but file() is for creating a connection with a local file.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset