Identify and collect URLs in a single md,rmd, or qmd file

get_urls(file, ignore_urls = "")

Arguments

file

A file path to a md,rmd, or qmd file that contains URLs to be check

ignore_urls

A vector of URLs which to ignore.

Value

a data.frame of all the URLs identified in the given md,rmd, or qmd file

Examples

if (FALSE) { # \dontrun{

# Add in a URL error
# writeLines("A URL error: https://notawebsiteaaaaaaa.com", "url_test_error.md")

get_urls("url_test_error.md")
} # }