Transition to sugar length checks (#1513): affected packages
まだ誰も着手していません。
評価
調査の方向性
This is a tracking checklist; the work lives in the linked downstream repositories, not in Rcpp itself. Pick one unchecked package, read its linked PR or issue, and reproduce the length mismatch in the cited line, using the Rcpp #1513 development branch. Done means the package builds against both CRAN Rcpp 1.1.2 and the #1513 branch, and its results are no longer silently truncated.
索引モデルが issue の本文から書いたものです。
説明
PR #1513 (closing #1512) makes Rcpp sugar check that the operands of an expression, and a vector assigned into a matrix row, column or Range subset, have matching lengths. Released Rcpp sizes the result by the left-hand operand (or the target) and silently truncates the longer side, so code with mismatched lengths ran without complaint; in several cases below it also produced wrong results.
The reverse dependency run of 2026-10-06 (summarised here) gives '3302 successes, 29 failures, 60 skipped'. Of the failures, twelve are packages that trip the new check, each at a single site:
Error: sugar operands have different lengths (N1 and N2)
Error: cannot assign a vector of length V to a target of length T
This issue regroups the required work on those packages. Note that the checks are compiled in only for development versions of Rcpp (four version components, which is what the reverse-dependency runs use); releases leave them off and behave as before, so none of these packages will break on CRAN when Rcpp is released. The fixes are still worth making, since in several cases the old results were wrong. The fixes are one line in ten cases, and each has been sent upstream as a PR or, where no repository could be found, as a patch by email. In the two remaining cases the old results were affected and the maintainer should own the change, so an issue was filed instead. Fixed packages build against both the CRAN version 1.1.2 and the #1513 branch.
Help is definitely welcome. If you maintain one of these packages, or can nudge its maintainer, please do.
Individual packages:
- binspp adds covariate images on a different pixel grid than
Wpix(128x128 vs native), so old results were silently misaligned; issue filed https://github.com/tomasmrkvicka/binspp/issues/1 - CARBayesST builds
phi.matfrom a vector of length K*N assigned into rows of length N, which fed wrong values into the DIC and fitted values; issue filed https://github.com/duncanplee/CARBayesST/issues/13 - clustAnalytics allocates
com_sizewith the number of vertices instead of communities, PR at https://github.com/martirm/clustAnalytics/pull/2 - dbscan assigns k+1 duplicate neighbours into a row of width k when the query point is not among the hits, PR at https://github.com/mhahsler/dbscan/pull/99
- EpiLPS builds
BBtempwith length t instead of simax, PR at https://github.com/oswaldogressani/EpiLPS/pull/4 - FDX caps probabilities with
pmin(probs, NumericVector(numTests, 1.0))whereprobsis shorter, PR at https://github.com/DISOhda/FDX/pull/1 - FVDDPpkg builds each column of
cartesian_cppwithlen(v) * Nelements, no repo we could find, patch emailed - greeks uses an inclusive
Range(s, s + paths)one element too long, PR at https://github.com/ahudde/greeks/pull/23 - HistDAWass sizes a weight vector by k instead of vars, an out-of-bounds read when k < vars; no repo we could find, patch emailed
- PP drops persons from
respmwithout subsettingtheta_start,muandsigma2, PR at https://github.com/jansteinfeld/PP/pull/3 - tsfgrnn uses
Range(ind - nt + 1, ind + 1)assuming a half-open range, PR at https://github.com/franciscomartinezdelrio/tsfgrnn/pull/2 - tsfknn uses the same
Range(ind - nt + 1, ind + 1), PR at https://github.com/franciscomartinezdelrio/tsfknn/pull/5
See full list.
NB: Two other failures in that run were on our side and are not covered by this ticket: touch (a compile error in lapply(), fixed in #1513) and revdbayes (an object layout change in #1511 that broke the XPtr call from rust, since reworked). The ConsTree 'illegal operation' (and the long-standing TreeTools, TreeDist and TreeSearch failures) come from an unconditional inline-asm popcnt in TreeTools' SplitList.h, which faults on CPUs without POPCNT such as VMs with a generic CPU model; reported at ms609/TreeTools#287 with a fix at ms609/TreeTools#288. The remaining failures were pre-existing, missing dependencies, or unrelated to Rcpp per the run summary.
- 主要言語
- C++
- スター
- 796
- フォーク
- 217
- 平均マージ
- 1日 12時間
- マージ済み PR(30日)
- 2
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
RcppCore/Rcpp のほかの issue
-
難易度 1/5 1時間未満 初心者へのやさしさ 90/100
-
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
-
no-issue-activity
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
-
Consider masking definition of Rf_error()?対応中かも @Enchufa2 が 396 日前に担当しました。 オープン
難易度 5/5 1週間以上 初心者へのやさしさ 30/100
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
godotengine/godot#125913 ·
メンテナーはふだん 1 日以内に返信
-
期待增加虚线线条样式オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
-
bug
難易度 1/5 1時間未満 初心者へのやさしさ 94/100
vllm-project/vllm#70568 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
mw00/project-maya#1368 ·
メンテナーはふだん 2 日以内に返信
-
needs triage
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信