Skip to content
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

GH-43194: [R] R_existsVarInFrame isn't available earlier than R 4.2 #43243

Merged
merged 1 commit into from
Jul 14, 2024

Conversation

jonkeane
Copy link
Member

@jonkeane jonkeane commented Jul 13, 2024

Rationale for this change

R_existsVarInFrame doesn't exist before R 4.2, so we need to fall back to Rf_findVarInFrame3 if it is not defined.

Resolves #43194

What changes are included in this PR?

ifdefs

Are these changes tested?

Yes, in our extended CI test-r-versions, test-r-rstudio-r-base-4.1-opensuse155

Are there any user-facing changes?

No

@jonkeane
Copy link
Member Author

@github-actions crossbow submit test-r-versions

Copy link

⚠️ GitHub issue #43194 has been automatically assigned in GitHub to PR creator.

Copy link

Revision: 7414f23

Submitted crossbow builds: ursacomputing/crossbow @ actions-edac7fb428

Task Status
test-r-versions GitHub Actions

@jonkeane
Copy link
Member Author

@github-actions crossbow submit test-r-rstudio-r-base-4.1-opensuse155 r-binary-packages

Copy link

Revision: 7414f23

Submitted crossbow builds: ursacomputing/crossbow @ actions-fa92c5b35b

Task Status
r-binary-packages GitHub Actions
test-r-rstudio-r-base-4.1-opensuse155 Azure

Copy link
Member

@thisisnic thisisnic left a comment

Choose a reason for hiding this comment

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

Looks good; I see the job failing on the nightlies but passing above after this change here.

Do we want to cherry-pick this into the release?

@github-actions github-actions bot added awaiting merge Awaiting merge and removed awaiting committer review Awaiting committer review labels Jul 14, 2024
Copy link

Revision: 7414f23

Submitted crossbow builds: ursacomputing/crossbow @ actions-4dc7fa4731

Task Status
test-r-versions GitHub Actions

@jonkeane jonkeane merged commit 0372617 into apache:main Jul 14, 2024
13 checks passed
@jonkeane jonkeane removed the awaiting merge Awaiting merge label Jul 14, 2024
Copy link

After merging your PR, Conbench analyzed the 4 benchmarking runs that have been run so far on merge-commit 0372617.

There were no benchmark performance regressions. 🎉

The full Conbench report has more details.

jonkeane added a commit that referenced this pull request Jul 18, 2024
…43243)

### Rationale for this change

`R_existsVarInFrame` doesn't exist before R 4.2, so we need to fall back to `Rf_findVarInFrame3` if it is not defined.

Resolves #43194

### What changes are included in this PR?

`ifdef`s

### Are these changes tested?

Yes, in our extended CI `test-r-versions`, `test-r-rstudio-r-base-4.1-opensuse155`

### Are there any user-facing changes?

No

* GitHub Issue: #43194

Authored-by: Jonathan Keane <jkeane@gmail.com>
Signed-off-by: Jonathan Keane <jkeane@gmail.com>
jonkeane added a commit that referenced this pull request Aug 1, 2024
A follow on to #43243 `#ifdef function declaration` does not work, instead we must use the `#if (R_VERSION >= R_Version(4, 2, 0))` pattern to only include code for specific versions.

Lead-authored-by: Jonathan Keane <jkeane@gmail.com>
Co-authored-by: Neal Richardson <neal.p.richardson@gmail.com>
Signed-off-by: Jonathan Keane <jkeane@gmail.com>
jonkeane added a commit that referenced this pull request Aug 5, 2024
A follow on to #43243 `#ifdef function declaration` does not work, instead we must use the `#if (R_VERSION >= R_Version(4, 2, 0))` pattern to only include code for specific versions.

Lead-authored-by: Jonathan Keane <jkeane@gmail.com>
Co-authored-by: Neal Richardson <neal.p.richardson@gmail.com>
Signed-off-by: Jonathan Keane <jkeane@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[R] R_existsVarInFrame isn't available earlier than R 4.2
2 participants