rstudio / rstudioapi

Safely access RStudio's API (when available)
http://rstudio.github.io/rstudioapi
Other
167 stars 36 forks source link

Save png from viewer #240

Open rjake opened 2 years ago

rjake commented 2 years ago

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