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

Aperta
#181 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
57/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
r

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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
Lingua principale
R
Stelle
1
Fork
3
Merge medio
9h 41m
PR unite (30g)
2

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di SticsRPacks/CroPlotR

Tutte le issue di SticsRPacks/CroPlotR

Issue simili

Altre issue su R

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.