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

Đang mở
#181 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
2/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
57/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
r
Lĩnh vực
data-visualization

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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
Ngôn ngữ chính
R
Star
1
Fork
3
Merge trung bình
9 giờ 41 phút
Pull request đã merge (30 ngày)
2

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của SticsRPacks/CroPlotR

Tất cả issue của SticsRPacks/CroPlotR

Issue tương tự

Thêm issue về R

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.