[Rd] Port r89945 to trunk?

Ivan Krylov kry|ov@r00t @end|ng |rom gm@||@com
Fri Sep 4 15:19:08 CEST 2026


On R-devel/Windows, old.packages(type="both") fails when there exist
binary packages with no corresponding source package:

> old.packages()
Error in av.src[pkg.bin, "Version"] : subscript out of bounds

Enter a frame number, or 0 to exit

1: old.packages()
2: .available.both(repos, method, ...)

Selection: 2
Called from: top level
Browse[1]> ls()
[1] "av.bin"  "av.src"  "bin.ver" "fields"  "method"  "pkg.bin"
"pkg.src" [8] "repos"
Browse[1]> str(av.src)
 chr [1:24846, 1:19] "a11yShiny" "a5R" "aae.pop" "AalenJohansen" "aamatch" ...
 - attr(*, "dimnames")=List of 2
  ..$ : chr [1:24846] "a11yShiny" "a5R" "aae.pop" "AalenJohansen" ...
  ..$ : chr [1:19] "Package" "Version" "Priority" "Depends" ...
Browse[1]> str(pkg.bin)
 chr [1:24779] "AATtools" "ABACUS" "ABC.RAP" "ABCDscores" "ABCanalysis"
... Browse[1]> setdiff(pkg.bin, rownames(av.src))
[1] "RPresto"  "dlsem"    "growth"   "pulsar"   "thankr"   "tinyVAST"

In R-4.6.1 this is solved by r89945 excluding such (archived) packages
from the return value with a warning. Can we have this on trunk, or do
we need a different solution (something to do with the unified binary
packages)?

-- 
Best regards,
Ivan



More information about the R-devel mailing list