Package infrastructure: build ignores, example data script, data.table internals, imports, CI

オープン
#1,276 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
25/100
issue の種類
リファクタリング
明瞭さ
おおむね明確
活発さ
活発
技術スタック
r

調査の方向性

Start by reading the package build configuration, inst/create-example-data.R, [.forecast, R/z-globalVariables.R, .lintr, and the CI workflows named in the issue. Triage the listed problems and inspect the relevant package checks and tests to understand their current behavior. Done means the reported packaging, script, import, lint, and CI issues are resolved and the package builds and checks cleanly.

索引モデルが issue の本文から書いたものです。

説明

CLAUDE: - [ ] .Rbuildignore: the 2.3.0 source tarball is 4.66 MB (CRAN limit 5 MB) and contains LaTeX build files from inst/manuscript (.aux, .log, .bbl, figure PDFs, manuscript.pdf / .tex) and inst/make_hexsticker.R; these are only in .gitignore. _pkgdown.yml is listed twice and ^README.Rmd is unescaped.

  • inst/create-example-data.R cannot run: it uses svn checkout from GitHub, calls the removed merge_pred_and_obs(), refers to quantile after the column was renamed to quantile_level, has no set.seed(), and saves data sets that are no longer shipped.
  • [.forecast writes into data.table's unexported .global environment (getFromNamespace(".global", "data.table")) on every subset; shouldPrint is fetched with getFromNamespace() although it is exported.
  • Imports: methods (formalArgs, hasArg), stats::sd, checkmate::test_list and lifecycle::deprecated are imported but unused; importFrom(scoringRules, crps_sample, dss_sample, logs_sample) is shadowed by the package's own functions; ggdist and kableExtra in Suggests are only used by the manuscript; vdiffr is used in some tests without skip_if_not_installed().
  • R/z-globalVariables.R has about 16 entries that no longer occur in R/ and one malformed entry ("n_obs wis_component_name").
  • .lintr disables expect_identical_linter, commented_code_linter and object_name_linter globally, yet about 197 inline # nolint comments for these linters remain.
  • CI: build-image.yaml only triggers on branches that do not exist; README PRs opened with GITHUB_TOKEN do not trigger CI; no job runs test files in isolation (which is how the order-dependent snapshots stayed hidden); the [ci skip] condition in lint.yaml has no effect on pull requests.

Found during a full review of the package (version 2.3.0.9000, main at 779d7d68).

主要言語
R
スター
68
フォーク
24
平均マージ
1時間 24分
マージ済み PR(30日)
2

環境構築

Codespaces で開く

このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

epiforecasts/scoringutils のほかの issue

epiforecasts/scoringutils の issue をすべて見る

似ている issue

R の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。