Skip to contents

Checks common package files for http:// URLs (should usually be https://) and known URL shortener domains.

Usage

diagnose_urls(path, verbose = TRUE)

Arguments

path

Character. Path to package directory

verbose

Logical. Print diagnostic messages

Value

checktor_check_result() with passed, issues, message.

Examples

pkg_path <- example_diagnose_scenario("description_examples/bad_description.txt",
                                      show_content = FALSE)
issues(diagnose_urls(pkg_path, verbose = FALSE))
#>   file line                                      location    message
#> 1 <NA>   NA DESCRIPTION: http:// URL (should be https://) URLs check