Skip to content

Deduplicate CRAN archived versions - #122

Merged
andrew merged 1 commit into
mainfrom
cran-dedup-archive-versions
Oct 27, 2026
Merged

andrew merged 1 commit into
mainfrom
cran-dedup-archive-versions

Conversation

@andrew

@andrew andrew commented Oct 27, 2026

Copy link
Copy Markdown
Contributor

Closes #119.

The src/contrib/Archive/{name}/ directory listing shows each filename in both the href and the link text, so parseArchiveVersions matched every archived version twice. Keep a set of versions already seen. TestFetchVersions now asserts the exact version list; its fixture already triggered the duplicate so the test fails without the fix.

The Archive directory listing shows each filename in the href and the
link text, so the regex matched every archived version twice.
Copilot AI balanced review requested due to automatic review settings October 27, 2026 09:02

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota.

An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.

@andrew
andrew requested a review from simonchrz October 27, 2026 09:08

@simonchrz simonchrz left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Checked against the live R6 archive listing, LGTM.

@andrew
andrew merged commit 2d8d88b into main Oct 27, 2026
6 checks passed
@andrew
andrew deleted the cran-dedup-archive-versions branch October 27, 2026 10:57
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.

CRAN FetchVersions lists archived versions twice

3 participants