How should we document methods that have different arguments than the default method?

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

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

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

  • #1087 @nikosbosse による — マージされずにクローズ

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
25/100
issue の種類
ドキュメント
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
r
領域
documentation

調査の方向性

as_point()、as_quantile()、score()、is_forecast() のドキュメントブロックを確認し、issue で説明されている @rdname の使用方法と、#790 で導入された変更も含めます。異なるメソッド引数をマニュアルページ間でどのように整理すべきかを判断し、選択した規約を文書化して、これらのメソッドに一貫して適用します。

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

説明

In #790 @seabbs introduced the functions as_point() and as_quantile() which transform a forecast object into an object of class forecast_point() and forecast_quantile(), respectively.

For other methods (e.g. score() or is_forecast()) we always lumped all methods into one doc by using @rdname generic_function. This was fine, as all methods had the same arguments.

In this case, the methods have different arguments, depending on the class of the input.

Should all methods appear in one manual page, or should they appear in different ones?

I.e. should we have something like this
image

Or something like this
image

and a separate
image

主要言語
R
スター
67
フォーク
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 を短くまとめたダイジェスト。