Title: Changes in downstream packages required by #1402 · Issue #1406 · RcppCore/Rcpp · GitHub
Open Graph Title: Changes in downstream packages required by #1402 · Issue #1406 · RcppCore/Rcpp
X Title: Changes in downstream packages required by #1402 · Issue #1406 · RcppCore/Rcpp
Description: PR #1402 addresses the long-standing issue #1247 by masking Rf_error() and preferring Rcpp::stop(). A relatively small number of packages do need a minor adjustment each: often just a removal of an #include
Open Graph Description: PR #1402 addresses the long-standing issue #1247 by masking Rf_error() and preferring Rcpp::stop(). A relatively small number of packages do need a minor adjustment each: often just a removal of an...
X Description: PR #1402 addresses the long-standing issue #1247 by masking Rf_error() and preferring Rcpp::stop(). A relatively small number of packages do need a minor adjustment each: often just a removal of an...
Opengraph URL: https://github.com/RcppCore/Rcpp/issues/1406
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Changes in downstream packages required by #1402","articleBody":"PR #1402 addresses the long-standing issue #1247 by masking `Rf_error()` and preferring `Rcpp::stop()`. A relatively small number of packages do need a minor adjustment each: often just a removal of an `#include \u003cR.h\u003e` which may mess with the `NO_REMAP` macro, or a simple re-run of `compileAttributes()`. This issue will regroup these changes and is based on the 2025-11-04 reverse dependency run summarized [in this text file](https://github.com/RcppCore/rcpp-logs/blob/master/results/Rcpp-20251104.txt) as mention in [this comment](https://github.com/RcppCore/Rcpp/pull/1402#issuecomment-3488126548).\n\nThe checklist will be expanded \"in due course\" to record PRs (or emailed patches).\n\n#### Group 1: Including `R.h` which is best avoided\n\nThis is an issue we should be more proactive about (as for example [RcppArmadillo is w.r.t. `Rcpp.h`](https://github.com/RcppCore/RcppArmadillo/blob/master/inst/include/RcppArmadillo.h#L24-L26) as it can lead to issues with re-definitions of `error()` as seen here. It is usually both harmless, and without side-effects -- until it isn't. \nIt consists on removing `#include \u003cR.h\u003e` as well as any other R headers, which are already loaded by Rcpp safely. The change can be made anytime before or after we land the patch in Rcpp.\n\n- [ ] BayesProject: patch **emailed** 2025-12-21\n- [ ] GeneralizedWendland: patch **emailed** 2025-12-21\n- [ ] locStra: patch **emailed** 2025-12-21\n- [x] LOMAR: patch **emailed** 2025-12-21, on CRAN 2025-12-22\n- [ ] SAM: patch **emailed** 2025-12-21\n- [ ] TDA: patch **emailed** 2025-12-21\n\n#### Group 2: Use `-DRCPP_NO_MASK_RF_ERROR` if needed\n\nSome packages have a complicated-enough setup, possibly with other callbacks into R, making use of `Rf_error()` unavoidable. In those cases a `#define` can be used to restore the status quo. These package can apply the change anytime.\n\n- [ ] ggiraph: davidgohel/ggiraph/pull/343 filled 2025-12-22, merged 2026-01-16\n- [x] mmrm: openpharma/mmrm/pull/556 filled 2025-12-22, merged 2026-01-07, on CRAN 2026-01-08\n- [ ] RTMB: kaskr/RTMB/pull/78 filled 2025-12-22, fixed 2025-12-24\n- [ ] s2: r-spatial/s2/pull/292 filled 2025-12-22, merged 2025-12-31\n\n#### Group 3: Use custom patch\n\nThis mostly consists of applying a custom manual patch that switches to `Rcpp::stop()`.\n\n- [x] cpr: dewittpe/cpr/pull/63 filled 2025-12-22, merged 2025-12-23, on CRAN 2026-01-08\n- [ ] VIC5: CUG-hydro/VIC5.R/pull/2 filled 2025-12-22\n\n#### Group 4: Re-run `compileAttributes()`\n\nPackages that defined an `Rcpp::interface(cpp)` have a resulting `RcppExports.cpp` that checks for correct (function) pointers and calls `Rf_error()`. An `compileAttributes()` re-run _once the PR has landed_ will fix this. So these packages may be on hold until we make the change in Rcpp, likely right after the next release so early 2026. They can however apply the patch we prepared if they use the current GitHub version of Rcpp.\n\n- [ ] BGVAR: run `compileAttributes()`, patch\n- [ ] coga: run `compileAttributes()`, patch\n- [ ] comat: run `compileAttributes()`, patch\n- [ ] dqrng: run `compileAttributes()`, patch\n- [x] itp: run `compileAttributes()`, patch; version 1.2.2 on CRAN 2026-01-10\n- [ ] meteoland: run `compileAttributes()`, patch\n- [ ] ravetools: run `compileAttributes()`, patch\n- [ ] RcppSimdJson: run `compileAttributes()`, patch\n- [ ] rrum: run `compileAttributes()`, patch\n- [ ] rucrdtw: run `compileAttributes()`, patch\n- [ ] sf: run `compileAttributes()`, patch\n- [ ] simcdm: run `compileAttributes()`, patch\n","author":{"url":"https://github.com/eddelbuettel","@type":"Person","name":"eddelbuettel"},"datePublished":"2025-11-11T01:40:55.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":3},"url":"https://github.com/1406/Rcpp/issues/1406"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:ba5a1f76-0c37-ec60-f3ef-cbee539d76af |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 93B6:E86F7:32021C1:32B2D40:6970332E |
| html-safe-nonce | e3d73fbe7128393ddfb1509170dbac0c465d4d20c7f1aaa65f3fd4f69a7a2024 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5M0I2OkU4NkY3OjMyMDIxQzE6MzJCMkQ0MDo2OTcwMzMyRSIsInZpc2l0b3JfaWQiOiI0MDM5ODU2ODMxNzc1OTEyNzUwIiwicmVnaW9uX2VkZ2UiOiJzZWEiLCJyZWdpb25fcmVuZGVyIjoic2VhIn0= |
| visitor-hmac | 4bad71e90bfd229d077dcfa388925368354e380c227d4188d4021f9007aaee70 |
| hovercard-subject-tag | issue:3610329061 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/RcppCore/Rcpp/1406/issue_layout |
| twitter:image | https://opengraph.githubassets.com/63834cc7191e2eae78351ebc847e8e6ed694e601e99de66a4676e533be86995f/RcppCore/Rcpp/issues/1406 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/63834cc7191e2eae78351ebc847e8e6ed694e601e99de66a4676e533be86995f/RcppCore/Rcpp/issues/1406 |
| og:image:alt | PR #1402 addresses the long-standing issue #1247 by masking Rf_error() and preferring Rcpp::stop(). A relatively small number of packages do need a minor adjustment each: often just a removal of an... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | eddelbuettel |
| hostname | github.com |
| expected-hostname | github.com |
| None | 9920a62ba22d06470388e2904804fb7e5ec51c9e35f81784e9191394c74b2bd2 |
| turbo-cache-control | no-preview |
| go-import | github.com/RcppCore/Rcpp git https://github.com/RcppCore/Rcpp.git |
| octolytics-dimension-user_id | 5811336 |
| octolytics-dimension-user_login | RcppCore |
| octolytics-dimension-repository_id | 14005591 |
| octolytics-dimension-repository_nwo | RcppCore/Rcpp |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 14005591 |
| octolytics-dimension-repository_network_root_nwo | RcppCore/Rcpp |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | f643964067a552f02067066d6a910b2f90a5721f |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width