Skip to content

[R-package] Use Rf_-prefixed versions of protect/unprotect#6502

Merged
jameslamb merged 1 commit intomicrosoft:masterfrom
david-cortes:rf_prefix
Jun 21, 2024
Merged

[R-package] Use Rf_-prefixed versions of protect/unprotect#6502
jameslamb merged 1 commit intomicrosoft:masterfrom
david-cortes:rf_prefix

Conversation

@david-cortes
Copy link
Contributor

From similar PR in XGBoost: dmlc/xgboost#10465

This PR modifies the R C-level function code to call the versions of protect/unprotect that have Rf_ prefixes. This is currently not required by CRAN as their non-Rf equivalents PROTECT/UNPROTECT are simple defines aliasing to Rf_protect/Rf_unprotect, but the situation might change in the future.

Copy link
Collaborator

@jameslamb jameslamb left a comment

Choose a reason for hiding this comment

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

Thank you! Totally agree with this.

@jameslamb jameslamb merged commit e9a6c79 into microsoft:master Jun 21, 2024
@github-actions
Copy link
Contributor

This pull request has been automatically locked since there has not been any recent activity since it was closed.
To start a new related discussion, open a new issue at https://github.com/microsoft/LightGBM/issues including a reference to this.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 26, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants