Skip to content

Add support for R 4.6#391

Merged
klmr merged 6 commits intomainfrom
chore/more-non-api-changes
Apr 8, 2026
Merged

Add support for R 4.6#391
klmr merged 6 commits intomainfrom
chore/more-non-api-changes

Conversation

@klmr
Copy link
Copy Markdown
Owner

@klmr klmr commented Apr 6, 2026

R 4.6 removes the C (de-facto-)API function Rf_FindVarInFrame(). This commit updates the C implementation to add support for the new API.

R 4.6 removes the C (de-facto-)API function Rf_FindVarInFrame(). This
commit updates the C implementation to add support for the new API.
@ArcadeAntics
Copy link
Copy Markdown
Contributor

ArcadeAntics commented Apr 7, 2026

Hiya! I added more changes to this, found in #392, to also remove references to R_UnboundValue in favour of R_GetBindingType() (since R_UnboundValue will also be removed along with Rf_findVarInFrame())

@klmr
Copy link
Copy Markdown
Owner Author

klmr commented Apr 7, 2026

Ah, I had overlooked the removal of R_UnboundValue. Thanks for pointing that out.

… This is starting to get incredibly annoying.

@ArcadeAntics
Copy link
Copy Markdown
Contributor

Yeah, it's really annoying, especially since Luke Tierney is doing all this API cleanup without anyone else's input or review, meaning he frequently removes variables that ought to be part of the API.

You might've seen my email a few days ago about something similar, how he removed R_MissingArg despite the fact that it is very necessary to have access to it.

klmr and others added 5 commits April 8, 2026 00:40
* remove references to R_UnboundValue

In R >= 4.6, remove references to R_UnboundValue in favour of R_GetBindingType() (since R_UnboundValue will also be removed along with Rf_findVarInFrame)

* avoid using R_GetBindingType(), use R_getVarEx(,,, NULL) instead

* Fix promise evaluation and code style

---------

Co-authored-by: Konrad Rudolph <konrad.rudolph@gmail.com>
@klmr klmr merged commit cfa7c63 into main Apr 8, 2026
6 of 8 checks passed
@klmr klmr deleted the chore/more-non-api-changes branch April 8, 2026 15:19
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