Skip to content

Comments

Prevent Rcpp from masking valid uses of Rf_error#343

Merged
davidgohel merged 1 commit intodavidgohel:masterfrom
Enchufa2:master
Jan 16, 2026
Merged

Prevent Rcpp from masking valid uses of Rf_error#343
davidgohel merged 1 commit intodavidgohel:masterfrom
Enchufa2:master

Conversation

@Enchufa2
Copy link
Contributor

This PR sets the -DRCPP_NO_MASK_RF_ERROR flag to prevent Rcpp from masking valid calls to Rf_error.

At Rcpp, we plan to warn about this (see this issue for further discussion), and at some point stop the compilation with an error message, forcing the maintainers to take action. For valid uses of Rf_error, like in this package, we will provide this opt-out switch. Therefore, we kindly ask you to apply this patch and send an update to CRAN at your earliest convenience.

@davidgohel davidgohel merged commit 673906d into davidgohel:master Jan 16, 2026
5 checks passed
@davidgohel
Copy link
Owner

thank you @Enchufa2

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