rstudio/rstudioapi

Save png from viewer

Opened this issue · 0 comments

rjake commented

savePlotAsImage() is great. I'd like to have a similar function for the viewer. I'm trying to use DiagrammeR::grViz() and would like to export the image programmatically with rstudioapi.

DiagrammeR::grViz("digraph flowchart {1->2; 1->3}")

viewer