check_urls | R Documentation |
check_urls
Check urls in dynamic report files (.md, .Rmd & .qmd)
check_urls(path = ".")
path |
Path to the directory containing the files to be checked. Default is current directory. |
The function can be used to check if url addresses in dynamic reports are broken. Taken from Nan Xiao's blogpost (https://nanx.me/blog/post/rmarkdown-quarto-link-checker/).
A url_checker_db object with an added class with a custom print method.
Nan Xiao (me@nanx.me)
Araya-Salas, M., Arriaga, A. (2023), sketchy: research compendiums for data analysis in R. R package version 1.0.3. Xiao, N. (2023). A General-Purpose Link Checker for R Markdown and Quarto Projects. Blog post. https://nanx.me/blog/post/rmarkdown-quarto-link-checker/
add_to_gitignore
, make_compendium
{
data(compendiums)
# make compendiums
make_compendium(name = "my_compendium", path = tempdir(),
format = "basic", force = TRUE)
# check urls in scripts
check_urls(path = file.path(tempdir(), "./scripts"))
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.