check_urls | R Documentation |
Check links within an Rmarkdown document for any urls that responds with an error.
check_urls(rmd_path)
rmd_path |
Path to the Rmd that requires links to be checked. Rmd must be output type html. |
Lines of any urls that respond with an error.
# create a testfile links <- tempfile("mixed_links", fileext = ".rmd") file.create(links) writeLines("[a good link](https://datasciencecampus.ons.gov.uk/) [a bad link](https://datasciencecampus.ons.gov.uk/broken)", con = links ) # Test the file check_urls(links)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.