-->

ggvis::export_png on Windows

2019-07-02 07:32发布

问题:

Similar to Getting ggvis::export_png() working but I'm trying to get this working in RStudio on Windows.

I've installed node.js and downloaded vega and added ./bin to my PATH, but I get the error

mtcars %>% ggvis(~wt, ~mpg) %>% layer_points() %>% export_png
Writing to file plot.png
Error in vega_file(vis, file = file, type = "png") : 
  Conversion program vg2pngnot found.
标签: r ggvis