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

Abierto
#181 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
2/5
Tiempo estimado
1-3 horas
Aptitud para principiantes
57/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
r

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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
Lenguaje dominante
R
Estrellas
1
Forks
3
Merge medio
9 h 41 min
PR fusionados (30 d)
2

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de SticsRPacks/CroPlotR

Todos los issues de SticsRPacks/CroPlotR

Issues similares

Más issues de R

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.