-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
check for dead links? #170
Comments
Great idea @hansvancalster 👍 Who knows how to do this? |
I'll try to find a solution for that! |
Update: I'm working on this and found a nice tool to do that: https://github.com/stevenvachon/broken-link-checker. Apparently there's already a GitHub action to easily run it: https://github.com/marketplace/actions/broken-link-check There are a still few things that bother me, to think about:
to be continued soon! |
@niconoe, maybe https://httr.r-lib.org/reference/http_error.html can form the basis of a lightweight check? |
@hansvancalster: thanks! Indeed, we could implement out own checks using R (or other) HTTP libraries. I think I'm however more inclined to use an existing tool that should already handle all the gory details (redirections, possibility to ignore links ignored by robots, make the distinction between internal and external links, ...) |
I can try to check this in 2023 based my experience with GitHub Actions. |
A small update: the world of GitHub Acions is rapidly evolving and so I founded an action which seems more promising as it has already implemented the functionality of adding issues for any broken link found: |
Update part 2: the GitHub Action I mentioned above is however archived and read only. That means no maintenance will follow, so I think it's not the best idea to proceed with that. I found this other actively maintained GitHub Action which produce reports and will fail if broken links are present. No issues are created, which is maybe even better: I don't want this repo flooded with issues 😄 a failure action (red cross) is enough. https://github.com/marketplace/actions/broken-web-link-checker |
GitHub Action implemented on my dummy test-workflows repo, see (yml file), but I got an error: package aurora is not found. issue reported to the author, see elliotforbes/broken-link-checker#2. |
The tutorials website contains a lot of hyperlinks to websites. Would it be worthwhile/possible to check for dead links during continuous integration?
The text was updated successfully, but these errors were encountered: