Repository navigation
Fix broken and mis-parsed URLs in bibliography files - #1233
Merged
Merged
Conversation
Replace the defunct covid19forecasthub.eu URL with the hub's GitHub
archive, wrap URLs embedded in abstract/copyright text in \url{} so
URL checkers delimit them correctly, drop the URL from a bib key, and
use the canonical trailing-slash package website URL.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #1233 +/- ##
=======================================
Coverage 99.18% 99.18%
=======================================
Files 41 41
Lines 2333 2333
=======================================
Hits 2314 2314
Misses 19 19 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
The underscore in the new URL breaks LaTeX when the entry is cited with jss.bst, which writes howpublished verbatim. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Collaborator
Author
|
Just some URL formatting. Merging right away. |
This was referenced Sep 27, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
CLAUDE: Follow-up to the URL check for the 2.3.0 release (#1229).
urlchecker::url_check()flagged five problem URLs, all in bibliography files (not checked by CRAN, so this is cleanup rather than a release blocker). This PR fixes all of them.URL changes
inst/manuscript/scoringutils-paper.bib(howpublishedof the European Covid-19 Forecast Hub entry)https://covid19forecasthub.eu/\url{https://github.com/european-modelling-hubs/covid19-forecast-hub-europe_archive}covid19-forecast-hub-europerepo URLs redirect there). Wrapped in\url{}becausejss.bstwriteshowpublishedverbatim, and the underscore would otherwise break LaTeX if the entry were cited.NEWS.md(1.0.0 "Package data updated" entry)https://covid19forecasthub.eu/inst/manuscript/scoringutils-paper.bibandvignettes/scoring-rules/scoringutils-package.bib(Bracher et al. 2021 abstract), plus the Cramer et al. abstract in the paper bib(https://covid19forecasthub.org/)(\url{https://covid19forecasthub.org/})<>, so it read the closing)as part of the URL (https://covid19forecasthub.org/)).inst/manuscript/scoringutils-paper.bib(PNAS 2019copyrightfield)PNAS.. https://creativecommons.org/licenses/by-nc-nd/4.0/This open access…PNAS.. \url{https://creativecommons.org/licenses/by-nc-nd/4.0/} This open access……/4.0/This.inst/manuscript/scoringutils-paper.bib(bib key)@misc{https://epiforecasts.io/scoringutilsUtilitiesScoringAssessing,@misc{scoringutilsUtilitiesScoringAssessing,inst/manuscript/scoringutils-paper.bib(authorof the same entry)https://epiforecasts.io/scoringutilshttps://epiforecasts.io/scoringutils/Nothing changes the bibliographic content. The fields touched are abstracts, a copyright note, an uncited key and
howpublished/authorURLs.Verification
urlchecker::url_check()locally. None of the five problem URLs are reported any more. The only remaining entries were timeouts from a flaky local network, and each of those returns 200 withcurl(30 s timeout); medRxiv returns 403 to curl, which is its bot protection, not a broken link. On a stable connection, a clean urlchecker run of currentmainfound exactly these five problems and nothing else.jss.cls/jss.bstcompiles without LaTeX errors, and pandoc converts\url{}back to the plain URL.\url{appears in rendered output, nothing cites the renamed bib key, the vignette renders with its references, and there is no merge conflict with Polish NEWS for the 2.3.0 release #1231. Its one finding (the underscore underjss.bst) is fixed in the second commit.vignettes/scoring-rules.Rmd(the vignette that usesscoringutils-package.bib) into a temp directory. It builds, the reference list is present and every citation resolves. No build output is committed.Left unchanged
https://R-Forge.R-project.org/projects/topmodels/(inst/manuscript/references.bib): an earlier run timed out, but it returns 200 on a stable connection. topmodels is not on CRAN (CRAN.R-project.org/package=topmodelsgives 404), so R-Forge is still the authoritative link.inst/manuscript/manuscript.Rmd/manuscript.texcontain\url{https://epiforecasts.io/scoringutils}without a trailing slash. urlchecker doesn't scan them, the.texand.pdfare generated from the.Rmd, and the link works via redirect, so I left them alone.file = {...covid19forecasthub.eu.html}field is a local file path, not a URL, so it stays as is.🤖 Generated with Claude Code