Skip to content

Fix broken and mis-parsed URLs in bibliography files - #1233

Merged
nikosbosse merged 2 commits into
mainfrom
fix-bib-urls
Sep 27, 2026
Merged

nikosbosse merged 2 commits into
mainfrom
fix-bib-urls

Conversation

@nikosbosse

@nikosbosse nikosbosse commented Sep 27, 2026 •

Copy link
Copy Markdown
Collaborator

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

File Old New Why
inst/manuscript/scoringutils-paper.bib (howpublished of the European Covid-19 Forecast Hub entry) https://covid19forecasthub.eu/ \url{https://github.com/european-modelling-hubs/covid19-forecast-hub-europe_archive} Domain no longer resolves (DNS failure). The hub's repository now lives at this URL (the old covid19-forecast-hub-europe repo URLs redirect there). Wrapped in \url{} because jss.bst writes howpublished verbatim, and the underscore would otherwise break LaTeX if the entry were cited.
NEWS.md (1.0.0 "Package data updated" entry) https://covid19forecasthub.eu/ same GitHub URL Same dead link; updated for consistency. Not flagged by urlchecker because it's a bare URL in parentheses, not a Markdown link. No NEWS entry added, since this only fixes a link in an existing entry.
inst/manuscript/scoringutils-paper.bib and vignettes/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/}) urlchecker's bib regex stops only at whitespace, braces, quotes and <>, so it read the closing ) as part of the URL (https://covid19forecasthub.org/)).
inst/manuscript/scoringutils-paper.bib (PNAS 2019 copyright field) 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… The text ran straight into the URL, which gave …/4.0/This.
inst/manuscript/scoringutils-paper.bib (bib key) @misc{https://epiforecasts.io/scoringutilsUtilitiesScoringAssessing, @misc{scoringutilsUtilitiesScoringAssessing, The Zotero-generated key contained a URL, which gave a bogus URL. Nothing cites this key (checked with grep over the manuscript and the rest of the repo), so renaming it is safe.
inst/manuscript/scoringutils-paper.bib (author of the same entry) https://epiforecasts.io/scoringutils https://epiforecasts.io/scoringutils/ Redirects to the canonical URL with a trailing slash.

Nothing changes the bibliographic content. The fields touched are abstracts, a copyright note, an uncited key and howpublished/author URLs.

Verification

  • Re-ran 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 with curl (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 current main found exactly these five problems and nothing else.
  • The new hub URL returns HTTP 200.
  • A test document citing the hub entry with the repo's jss.cls/jss.bst compiles without LaTeX errors, and pandoc converts \url{} back to the plain URL.
  • An agent review checked all changes: both bib files parse, no literal \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 under jss.bst) is fixed in the second commit.
  • Rendered vignettes/scoring-rules.Rmd (the vignette that uses scoringutils-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=topmodels gives 404), so R-Forge is still the authoritative link.
  • inst/manuscript/manuscript.Rmd / manuscript.tex contain \url{https://epiforecasts.io/scoringutils} without a trailing slash. urlchecker doesn't scan them, the .tex and .pdf are generated from the .Rmd, and the link works via redirect, so I left them alone.
  • The Zotero file = {...covid19forecasthub.eu.html} field is a local file path, not a URL, so it stays as is.

🤖 Generated with Claude Code

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

codecov Bot commented Sep 27, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 99.18%. Comparing base (ee35646) to head (9b906fc).

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.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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>
@nikosbosse

Copy link
Copy Markdown
Collaborator Author

Just some URL formatting. Merging right away.

@nikosbosse
nikosbosse merged commit 2236e5c into main Sep 27, 2026
11 checks passed
@nikosbosse
nikosbosse deleted the fix-bib-urls branch September 27, 2026 18:09
This was referenced Sep 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant