Command 'orca' not found @win/processx.c:983
Đang mở
Chưa có ai nhận issue này.
- Ngôn ngữ chính
- R
- Star
- 2.7k
- Fork
- 641
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Mô tả
I want to export a plotly object to a static image using plotly::orca on Win10, but I'm a getting the following error:
<c_error in rethrow_call(c_processx_exec, command, c(command, args), stdin, ...:
Command 'orca' not found @win/processx.c:983 (processx_exec)>
The problem seems to be not orca itself but processx::run. I wrote my own little orca function using base::system instead which works just fine.
Here is the same issue.
p <- plot_ly(mtcars, x = ~mpg, y = ~wt)
## Fails
plotly::orca(p)
## Works
file = "plot.png"; format = "png"
debug=verbose=safe=F
b <- plotly_build(p)
plotlyjs <- plotly:::plotlyjsBundle(b)
plotlyjs_path <- file.path(plotlyjs$src$file, plotlyjs$script)
if (!is.null(plotlyjs$package)) {
plotlyjs_path <- system.file(plotlyjs_path, package = plotlyjs$package)
}
tmp <- tempfile(fileext = ".json")
cat(plotly:::to_JSON(b$x[c("data", "layout")]), file = tmp)
args <- c("graph", tmp, "-o", file, "--format",
format, "--plotlyjs", plotlyjs_path, if (debug) "--debug",
if (verbose) "--verbose", if (safe) "--safe-mode")
base::system(paste("orca", paste(args, collapse = " ")))
Hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Hướng nghiên cứu
Tái hiện lỗi trên Win10 với plotly::orca(p) bằng ví dụ mtcars, sau đó kiểm tra lời gọi processx::run và so sánh nó với lệnh base::system đang hoạt động được nêu trong báo cáo. Được coi là hoàn tất khi plotly::orca có thể xuất biểu đồ thành ảnh tĩnh trên Windows mà không gặp lỗi "Command 'orca' not found".
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- plotly, r
- Lĩnh vực
- data-visualization
- Loại issue
- Lỗi
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Khá rõ ràng
- Mức phù hợp với người mới
- 30/100