Skip to content

Detect the macos.binary.arm64 package type used by R-devel 4.7 on macOS - #144

Merged
gaborcsardi merged 1 commit into
r-lib:mainfrom
remlapmot:fix-macos-r-devel
Sep 14, 2026
Merged

gaborcsardi merged 1 commit into
r-lib:mainfrom
remlapmot:fix-macos-r-devel

Conversation

@remlapmot

Copy link
Copy Markdown
Contributor

R-devel (4.7.0) on macOS arm64 reports .Platform$pkgType as macos.binary.arm64, whose <system> is macos, not the macosx that pkg_type_system_for_os() returns for darwin.

current_r_custom_pkg_type() compared the two with identical(), so it dropped the type from the platform name and pkgcache looked for binaries in bin/macosx/sonoma-arm64/contrib/4.7. CRAN has moved those to bin/macos/arm64/contrib/4.7 and the old directory no longer has a 4.7 subdirectory, so metadata and downloads 404.

Fixed by treating macos as a valid package-type system on darwin, alongside macosx. pkgcache then keeps the type in the platform name and derives bin/macos/arm64/contrib/<x.y> from it.

(For the records, related to r-lib/pak#909.)

@gaborcsardi
gaborcsardi merged commit cd17b44 into r-lib:main Sep 14, 2026
13 checks passed
@gaborcsardi

Copy link
Copy Markdown
Member

Great, thank you!

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.

2 participants