plotly / orca

Command line application for generating static images of interactive plotly charts
MIT License
292 stars 40 forks source link

orca not working in Rstudio #361

Open chitra-ramakrishnan opened 3 years ago

chitra-ramakrishnan commented 3 years ago

I ran the below code, library(plotly) fig <- plot_ly(data = iris, x = ~Sepal.Length, y = ~Petal.Length) fig orca(fig,"testfig.png")

I get the error: Error: The orca command-line utility is required for this functionality. Please follow the installation instructions here -- https://github.com/plotly/orca#installation

I can see the orca command, run help but it doesnt produce the output

rodaguayo commented 3 years ago

This works for me (Windows 10): Sys.setenv(PATH=paste0("C:/Users/username/AppData/Local/Programs/orca;", Sys.getenv("PATH")))