[Bug]: poor error message when units don't match

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

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

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

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
65/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
r

調査の方向性

stockplotr::plot_biomass() から始め、産卵親魚量の単位ラベルをどこで確認しているかをたどってください。報告されたエラーは、dplyr::bind_rows() で行を結合した後にラベルの長さが2になると発生します。単位が一致しない場合や欠落している場合に、意味のあるエラーを追加してください。そのうえで、報告された修正方法である mt の指定も含め、エラーが不一致の解決方法を説明していることを確認してください。

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

説明

bug
Describe the bug

I combined output from ASAP with FIMS, where the former is a custom converter that I wrote for yellowtail flounder. I did not have units on spawning biomass, they were NA when I combined yellowtail ASAP with a yellowtail FIMS using dplyr::bind_rows(). When I passed that combined data frame to stockplotr::plot_biomass() I got the following error message

Error in is.na(unit_label) || is.null(unit_label) : 
  'length = 2' in coercion to 'logical(1)'

I was able to figure it out but I think users would appreciate something more meaningful. I was able to fix it on my end by adding "mt" as the unit for spawning biomass.

Describe how to reproduce the bug

No response

Screenshots

No response

Which OS are you seeing the problem on?

No response

Which version of stockplotr are you seeing the problem on?

No response

Additional Context

No response

主要言語
R
スター
20
フォーク
10
平均マージ
3日 21時間
マージ済み PR(30日)
40

環境構築

Codespaces で開く

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

はじめの一歩

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

nmfs-ost/stockplotr のほかの issue

nmfs-ost/stockplotr の issue をすべて見る

似ている issue

R の issue をもっと見る

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

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