tests/testthat/_snaps/print.md

print() reports success when there are no problems

Code
  print(res)
Message
  v All URLs are correct!

print() points at the offending line for a broken URL

Code
  print(res)
Message
  x Error: URLS.txt:2:6 404: Not Found
  url: http://{host}/notfound
       ^~~

print() suggests a fix for a moved URL

Code
  print(res)
Message
  ! Warning: URLS.txt:2:4 Moved
     http://{host}/moved
     ^~~
     http://{host}/ok

print() handles an empty URL without erroring (#47)

Code
  print(res)
Message
  x Error: NEWS.md Empty URL

print() flags a non-canonical CRAN URL

Code
  print(res)
Message
  x Error: DESCRIPTION:2:1 Error: CRAN URL not in canonical form
  https://cran.r-project.org/package=foo
  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


Try the urlchecker package in your browser

Any scripts or data that you put into this service are public.

urlchecker documentation built on July 8, 2026, 5:07 p.m.