Skip to content

Update from Rf_findVar and Rf_findVarInFrame while maintaining backward compatibility for R < 4.5.0#1616

Open
perrydv wants to merge 1 commit intodevelfrom
fix-findVar-API-calls
Open

Update from Rf_findVar and Rf_findVarInFrame while maintaining backward compatibility for R < 4.5.0#1616
perrydv wants to merge 1 commit intodevelfrom
fix-findVar-API-calls

Conversation

@perrydv
Copy link
Contributor

@perrydv perrydv commented Mar 24, 2026

This PR includes R preprocessor checks for R version. For versions >= 4.5.0, uses of Rf_findVar and Rf_findVarInFrame are replaced with R_getVar and R_getVarEx with a little additional code. It is possible that testing will turn up some issues because evidently the older API calls were looser in some handling of some arguments, and I don't know for sure if we were relying on relevant cases in any way.

@perrydv
Copy link
Contributor Author

perrydv commented Mar 24, 2026

Failing on Windows. @paciorek Does this look like any general testing issues you've seen recently? I'm guessing there was a failure compiling the package DLL, but the information is not very clear. My windows setup is stale so I'll have to update or find another option.

@paciorek
Copy link
Contributor

No the DLL load failure doesn't look familiar. But we've had lots of such squirrely failures in the prep steps for testing on various OS, that it's possible it's not related to the changes here.

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