Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Consolidate vignettes: ~49-line metadata setup duplicated across 9 files

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

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

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

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
48/100
issue の種類
リファクタリング
明瞭さ
おおむね明確
活発さ
活発
技術スタック
r
領域
documentation

調査の方向性

Start with the eight customize-* vignette files and forestly.Rmd; compare their metadata setup blocks and identify the topic-specific sections to preserve. Read the vignette build configuration and the guidance for knitr child documents before choosing how to share the setup. Done means the setup has one source of truth, the customization topics are consolidated as proposed, and the vignettes still build.

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

説明

Problem

The metadata-construction section is duplicated almost verbatim across the vignettes. Every customize-* vignette opens with an identical "Step 1: build your metadata" section — the full meta_adam() → define_plan() → define_population() → define_observation() → define_parameter() (×4) → meta_build() pipeline — before a short topic-specific "Step 2". forestly.Rmd builds the same metadata as well.

Evidence
  • 8 customize-* vignettes + forestly.Rmd = 9 copies of the same ~49-line setup.
  • The "Step 1" block is byte-identical across 6 of them; the other two (customize-ae-specific-columns, customize-listing-columns) differ only by offset / one stray blank line.
  • Each customize-* page contributes only ~40 genuinely unique lines (its "Step 2").

Any change to the example metadata API or data must currently be edited in 9 places, and the near-empty pages add navigation noise.

Proposal

Two complementary moves (either alone helps; together is best):

  1. Deduplicate the setup. Factor the metadata build into a single shared source — e.g. a _setup.Rmd pulled into each vignette via a knitr child= chunk, or a tiny exported example_meta() helper — so there is one source of truth for the example metadata.

  2. Merge the 8 customize-* pages into one "Customize the display" vignette with a section per topic (color, digits, x-limits, diff label, widths, SOC-only, toggle buttons, listing columns). They are all just ae_forestly() / format_ae_forestly() argument variations. Keep forestly.Rmd as the main end-to-end tutorial.

Option 1 removes all 9 duplicated copies; option 2 additionally collapses 8 thin pages into one cohesive, navigable article.

Notes

  • Coordinate with #171 (vignette self_contained fix) — both touch the same vignette YAML/structure, so it is natural to do them together.
主要言語
R
スター
23
フォーク
6
平均マージ
2日 11時間
マージ済み PR(30日)
13

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

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

Merck/forestly のほかの issue

Merck/forestly の issue をすべて見る

似ている issue

R の issue をもっと見る

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

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