You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Windows binary PACKAGES index lists base-recommended packages with Path: entries whose directories don't exist (breaks pak/pkgcache installs) #147
I think this is more of a P3M/ PPM issue rather than pkgcache, but still worth noting if this needs a fix:
https://packagemanager.posit.co/cran/latest/bin/windows/contrib/4.6/PACKAGES has duplicate records for the 15 base-recommended packages (KernSmooth, MASS, Matrix, boot, class, cluster, codetools, foreign, lattice, mgcv, nlme, nnet, rpart, spatial, survival). Two of the duplicates carry Path: 4.6.2/Recommended and Path: 4.7.0/Recommended. Those directories and their PACKAGES files return 404, and the website shows no such binaries. On R 4.6.x, pak/pkgcache build the download URL from Path: and fail with a 404.
Index rows (foreign; MASS 7.3-66 is the same)
Version
Depends
Path
URL works?
0.8-92
R (>= 4.7)
4.7.0/Recommended
No (ruled out by R version)
0.8-92
R (>= 4.6)
4.6.2/Recommended
404
0.8-92
R (>= 4.0.0)
none
200
In the PPM Windows 4.6 index, 30 of 25,269 rows have a Path:. All 30 are these Recommended rows. CRAN's Windows 4.6 index has none.
Reprex (pkgcache 2.2.5, R 4.5.0 on Linux, so no Windows machine is needed)
(pkgcache also adds the default CRAN mirror, which contributes a fourth row, foreign 0.8-91, that returns 200.)
Why it breaks installs
A record with Path: and no File: becomes <repo>/<Path>/<pkg>_<ver>.zip (pkgcache R/packages-gz.R, ~line 401). Nothing verifies the URL. pkgdepends drops the >= 4.7 row, but the >= 4.6 row passes on R 4.6.x and is used. I haven't traced why it is chosen over the equally valid flat row.
Timeline
4.7.0/Recommended rows: present since at least 2026-05-01. Harmless on R < 4.7.
4.6.2/Recommended rows: first appear in the 2026-10-19 snapshot (14 packages), all 15 on 2026-10-20 and latest.
Snapshots up to 2026-10-18 lack them, but carry older versions (e.g. foreign 0.8-91).
Expected: the index lists only records that resolve, or the Recommended directories are published.
Question: Are these per-R-version Recommended rows intentional, with the directories still to be published, or an index-generation error?
Workaround: pin to a snapshot dated 2026-10-18 or earlier, or install the recommended packages from CRAN source.
Activity