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

as.network.data.frame test trips

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

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

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
35/100
issue の種類
バグ
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
r
領域
testing

調査の方向性

Start by running the bipartite-network test in tests/testthat/test-dataframe.R around lines 568–581 and inspect the warning from as.network.data.frame(). Trace the behavior through network/R/coercion.R:323 and network/R/dataframe.R:490 and 233. Done means the test no longer trips unexpectedly while the intended bipartite-network behavior remains covered.

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

説明

bug

Test is tripping:

Warning (test-dataframe.R:568:3): bipartite networks work
3 arguments not used by format '`bipartite` is `TRUE`, but the `vertices` you provided contain names that are not present in `x` (i.e. you have isolates).'
Backtrace:
     ▆
  1. ├─testthat::expect_error(...) at test-dataframe.R:568:2
  2. │ └─testthat:::quasi_capture(...)
  3. │   ├─testthat (local) .capture(...)
  4. │   │ └─base::withCallingHandlers(...)
  5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
  6. ├─network::as.network(...)
  7. └─network::as.network.data.frame(...) at network/R/coercion.R:323:12
  8.   └─network:::.prep_bipartite_vertices(...) at network/R/dataframe.R:490:6
  9.     ├─base::stop(...) at network/R/dataframe.R:233:6
 10.     │ └─base::.makeMessage(..., domain = domain)
 11.     │   └─base::lapply(list(...), as.character)
 12.     └─base::sprintf(...)

which is this fragment

https://github.com/statnet/network/blob/5fb95d2feddfd2a0fa3f234a102fe2992203c7c7/tests/testthat/test-dataframe.R#L568-L581

As this is related to bipartite networks it may very likely be related to problems in #64, #65,

主要言語
R
スター
20
フォーク
7
PR マージ指標
30日以内にマージされた PR はありません

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

はじめの一歩

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

statnet/network のほかの issue

statnet/network の issue をすべて見る

似ている issue

R の issue をもっと見る

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

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