Error is raised if not any var in data.frames in sim_list of a stics_wrapper returned object

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

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

評価

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

調査の方向性

Start by tracing plot(res$sim_list) to the dplyr::mutate() call shown in the error and inspect how it handles data frames without variables. Reproduce with the example data frame, then check that plotting works when var.mod is absent and that partially populated simulation lists are handled; the issue names no files or tests.

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

説明

the error message when all of the data.frames do not contain any variable or any of them, not tested if some of the data.frames do not contain any var.

> plot(res$sim_list)
Error in `dplyr::mutate()`:
ℹ In argument: `var = factor(as.character(var), levels = lvls)`.
Caused by error in `as.character()`:
! cannot coerce type 'closure' to vector of type 'character'
Run `rlang::last_trace()` to see where the error occurred.

example of data.frame (it occurs when the workspace does not contain a var.mod)

          Date pla   Plant
1   2005-08-31 ble plant_1
2   2005-09-01 ble plant_1
3   2005-09-02 ble plant_1
4   2005-09-03 ble plant_1
5   2005-09-04 ble plant_1
6   2005-09-05 ble plant_1
7   2005-09-06 ble plant_1
8   2005-09-07 ble plant_1
9   2005-09-08 ble plant_1
10  2005-09-09 ble plant_1
11  2005-09-10 ble plant_1
12  2005-09-11 ble plant_1
13  2005-09-12 ble plant_1
14  2005-09-13 ble plant_1
15  2005-09-14 ble plant_1
主要言語
R
スター
1
フォーク
3
平均マージ
9時間 41分
マージ済み PR(30日)
2

環境構築

はじめの一歩

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

SticsRPacks/CroPlotR のほかの issue

SticsRPacks/CroPlotR の issue をすべて見る

似ている issue

R の issue をもっと見る

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

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