Skip to content

Remove usage of Rf_findVarInFrame3() #386

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Aug 22, 2024

Conversation

DavisVaughan
Copy link
Member

Closes #367

Comment on lines +3 to +13
* The `environment` class no longer uses the non-API function
`Rf_findVarInFrame3()` (#367).

* The `exists()` method now uses the new `R_existsVarInFrame()` function.

* The `SEXP` conversion operator now uses the new `R_getVar()` function. Note
that this is stricter than `Rf_findVarInFrame3()` in 3 ways. The object
must exist in the environment (i.e. `R_UnboundValue` is no longer returned),
the object cannot be `R_MissingArg`, and if the object was a promise, that
promise is now evaluated. We have backported this new strictness to older
versions of R as well.
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Summary of the changes

@DavisVaughan DavisVaughan requested a review from lionel- August 20, 2024 20:25
@DavisVaughan DavisVaughan force-pushed the feature/remove-findvarinframe3 branch from 4ba1e9e to db4d17c Compare August 21, 2024 20:35
@DavisVaughan DavisVaughan merged commit 47f284c into r-lib:main Aug 22, 2024
16 checks passed
@DavisVaughan DavisVaughan deleted the feature/remove-findvarinframe3 branch August 22, 2024 20:00
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.

Investigate and remove Rf_findVarInFrame3 usage in environment
2 participants