| url_check | R Documentation |
For an R package, runs the url_db_from_package_source function in the
tools package along with functions to check URLs in un-rendered Rmarkdown
(.Rmd) and Quarto (.qmd) vignettes and in BibTeX (.bib) bibliographies.
For non-package projects, URLs are extracted from all supported files found
in the given directories.
url_check(
path = ".",
db = NULL,
parallel = TRUE,
pool = curl::new_pool(),
progress = TRUE,
fail = TRUE
)
path |
Path(s) to check. Each element may be:
|
db |
A url database |
parallel |
If |
pool |
A multi handle created by |
progress |
Whether to show the progress bar for parallel checks |
fail |
If |
A url_checker_db object (invisibly). This is a check_url_db object
with an added class with a custom print method.
.urlignoreSome URLs cannot be checked automatically, e.g. a link to a private
repository, or a page behind a login or captcha. To stop url_check() from
flagging (and even requesting) such URLs, list them in a .urlignore file.
It is read from two locations relative to the checked root, and the patterns
found are combined:
.urlignore in the root directory (like .gitignore), and
tools/.urlignore (handy for packages that keep it under tools/).
Each non-empty line is a glob pattern (blank lines and lines starting with
# are ignored), matched against the whole URL. For example
https://github.com/acme/secret matches that URL exactly, while
https://github.com/acme/* matches every URL under that path. Matching URLs
are dropped before checking, so they are never requested.
Note that CRAN's own URL checks do not read .urlignore, so an ignored URL
may still be flagged when the package is submitted to CRAN.
## Not run:
url_check("my_pkg")
url_check(c("README.md", "docs"))
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.