Skip to content

Fix devel-version suffix in bindings fallback messages#261

Open
CGMossa wants to merge 1 commit into
extendr:masterfrom
CGMossa:fix-bindings-fallback-devel-suffix
Open

Fix devel-version suffix in bindings fallback messages#261
CGMossa wants to merge 1 commit into
extendr:masterfrom
CGMossa:fix-bindings-fallback-devel-suffix

Conversation

@CGMossa

@CGMossa CGMossa commented Jun 30, 2026

Copy link
Copy Markdown
Member

TODO: replace this line with your own framing, in your own voice.

AI-written details

Summary

  • The fallback warning and panic in retrieve_prebuild_bindings interpolated version_info.devel (a bool) where the -devel / "" suffix belonged, so the messages printed nonsense such as These may not work for R 4.6.0false.
  • Compute the same devel_suffix already used by get_r_bindings_filename and use it in both messages.

Test plan

  • Build against an R whose version has no exact precompiled bindings (so the generic fallback fires), e.g. R 4.6 on macOS arm64.
  • Confirm the warning reads ... These may not work for R 4.6.0. with no trailing false.

Notes

  • Message text only, no behavior change.

Drafted by Claude (claude-opus-4-8). Reviewed by the author.

`retrieve_prebuild_bindings` interpolated `version_info.devel` (a `bool`)
into its warning and panic where the `-devel`/`""` suffix belonged, so the
messages printed nonsense such as "These may not work for R 4.6.0false."

Compute the same `devel_suffix` already used by `get_r_bindings_filename`
and use it in both messages.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
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