html_getLinks() function
Closed this issue · 0 comments
jonathancallahan commented
A start on this function is found in local_TODO/html_getLinks.R
.
That function should have enough advice to get you going. You should
- copy the file into the
R/
directory - walk through the code that currently exists and make sure it works
- learn just enough about xml2 to finish up the function
- source and test the function on a variety of URLs and local html files
- create wrapper functions
html_getLinkNames()
andhtml_getLinkUrls()
that return only thelinkName
orlinkUrl
columns as vectors. These should exist inside the samehtml_getLinks.R
file and all three functions should share a single documentation page.