Changes in downstream packages required by #1402
還沒有人認領這個 Issue。
評估
- 難度
- 4/5
- 預估耗時
- 3-5 天
- 新手友好度
- 35/100
- Issue 類型
- 重構
- 描述清晰度
- 基本清楚
- 活躍度
- 停滯
- 領域
- build-system, tooling
研究方向
Read the reverse-dependency report Rcpp-20251104.txt and the unchecked package entries in this issue. For a selected package, inspect its R headers or generated RcppExports.cpp, then apply the listed action—remove unnecessary R headers, add the requested define, use the custom patch, or rerun compileAttributes(). Done means the package adjustment is complete and its checklist entry can be updated.
由索引模型根據 Issue 內容生成。
描述
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 <R.h> 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 as mention in this comment.
The checklist will be expanded "in due course" to record PRs (or emailed patches).
Group 1: Including R.h which is best avoided
This is an issue we should be more proactive about (as for example RcppArmadillo is w.r.t. Rcpp.h 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.
It consists on removing #include <R.h> 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.
- BayesProject: patch emailed 2025-12-21
- GeneralizedWendland: patch emailed 2025-12-21
- locStra: patch emailed 2025-12-21
- LOMAR: patch emailed 2025-12-21, on CRAN 2025-12-22
- SAM: patch emailed 2025-12-21, on CRAN 2026-02-19
- TDA: patch emailed 2025-12-21
Group 2: Use -DRCPP_NO_MASK_RF_ERROR if needed
Some 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.
- ggiraph: davidgohel/ggiraph/pull/343 filled 2025-12-22, merged 2026-01-16, version 0.9.3 on CRAN 2026-01-19
- mmrm: openpharma/mmrm/pull/556 filled 2025-12-22, merged 2026-01-07, on CRAN 2026-01-08
- RTMB: kaskr/RTMB/pull/78 filled 2025-12-22, fixed 2025-12-24, on CRAN 2026-03-20
- s2: r-spatial/s2/pull/292 filled 2025-12-22, merged 2025-12-31
Group 3: Use custom patch
This mostly consists of applying a custom manual patch that switches to Rcpp::stop().
- cpr: dewittpe/cpr/pull/63 filled 2025-12-22, merged 2025-12-23, on CRAN 2026-01-08
- VIC5: CUG-hydro/VIC5.R/pull/2 filled 2025-12-22, merged 2026-01-23
Group 4: Re-run compileAttributes()
Packages 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.
- BGVAR: run
compileAttributes(), patch - coga: run
compileAttributes(), patch; version 1.2.3 on CRAN 2026-03-07 - comat: run
compileAttributes(), patch; version 0.9.7 on CRAN 2026-03-05 - dqrng: run
compileAttributes(), patch - itp: run
compileAttributes(), patch; version 1.2.2 on CRAN 2026-01-10 - meteoland: run
compileAttributes(), patch; on CRAN 2026-02-18 - ravetools: run
compileAttributes(), patch - RcppSimdJson: run
compileAttributes(), patch; version 0.1.15 on CRAN 2026-01-14 - rrum: run
compileAttributes(), patch - rucrdtw: run
compileAttributes(), patch; version 0.1.7 on CRAN 2026-03-06 - sf: run
compileAttributes(), patch; on CRAN 2026-02-24 - simcdm: run
compileAttributes(), patch
- 主要語言
- C++
- 星號
- 799
- 分支
- 219
- 平均合併
- 2 天 9 小時
- 30 天內合併 PR
- 8
貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
RcppCore/Rcpp 的其他 Issue
-
難度 5/5 一週以上 新手友好度 25/100
-
難度 5/5 一週以上 新手友好度 30/100
相似的 Issue
-
ai_reviewed
難度 2/5 1-3 小時 新手友好度 68/100
ydb-platform/ydb#53869 · 3 則留言 ·
-
bug cert blocker needs triage
難度 2/5 1-3 小時 新手友好度 82/100
project-chip/connectedhomeip#74373 ·
-
upstream update
難度 2/5 1-3 小時 新手友好度 75/100
conan-io/conan-center-index#31035 ·
-
Bug
難度 2/5 1-3 小時 新手友好度 68/100
-
documentation
難度 1/5 1 小時以內 新手友好度 85/100
vllm-project/vllm-ascend#17329 ·