我正在使用orca
将plotly
图保存为本地pdf / png图像。在旧计算机(Windows 7)上运行正常,但在新计算机(Windows 10)上完全收到了以下错误消息。
这是使用此处规定的方法(适用于Windows的方法4)https://github.com/plotly/orca
重新安装plotly
和Orca的方法
plotly
本身是从GitHub安装的:devtools::install_github("ropensci/plotly")
代码
> k <- plot_ly(as.data.frame(mtcars)) %>% add_markers(x = ~wt, y = ~mpg, type = 'scatter')
> orca(k, file = 'test.pdf', format = 'pdf')
错误消息
Orca似乎已正确安装,并已添加到系统环境变量中,下面通过cmd对其进行了验证:
有没有办法解决这个问题?会话信息如下:
> sessionInfo()
R version 3.6.1 (2019-07-05)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 16299)
Matrix products: default
locale:
[1] LC_COLLATE=English_India.1252 LC_CTYPE=English_India.1252 LC_MONETARY=English_India.1252
[4] LC_NUMERIC=C LC_TIME=English_India.1252
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] plotly_4.9.0.9000 ggplot2_3.2.1
loaded via a namespace (and not attached):
[1] Rcpp_1.0.2 pillar_1.4.2 compiler_3.6.1 later_1.0.0 tools_3.6.1 zeallot_0.1.0
[7] digest_0.6.22 jsonlite_1.6 tibble_2.1.3 lifecycle_0.1.0 gtable_0.3.0 viridisLite_0.3.0
[13] pkgconfig_2.0.3 rlang_0.4.1 shiny_1.4.0 rstudioapi_0.10 crosstalk_1.0.0 fastmap_1.0.1
[19] withr_2.1.2 dplyr_0.8.3 httr_1.4.1 htmlwidgets_1.5.1 vctrs_0.2.0 grid_3.6.1
[25] tidyselect_0.2.5 glue_1.3.1 data.table_1.12.6 R6_2.4.0 processx_3.4.1 purrr_0.3.3
[31] tidyr_1.0.0 magrittr_1.5 ps_1.3.0 scales_1.0.0 backports_1.1.5 promises_1.1.0
[37] htmltools_0.4.0 assertthat_0.2.1 xtable_1.8-4 mime_0.7 colorspace_1.4-1 httpuv_1.5.2
[43] lazyeval_0.2.2 munsell_0.5.0 crayon_1.3.4