plotly / orca

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

orca (in R) does not save in /tmp relative to root #334

Open ivokwee opened 4 years ago

ivokwee commented 4 years ago

using

orca(p, "/tmp/plot.pdf")

the plot gets saved relative to the current folder ./tmp/plot.pdf and not in /tmp/plot.pdf (relative to root). Using the server it does properly save relative to root

server$export(p, "/tmp/plot.pdf")

ivokwee commented 4 years ago

also the command line program has the same bug:

orca-1.3.1.AppImage graph '{ "data": [{"y": [1,2,1]}] }' -o /tmp/fig.pdf --format pdf

The figure fig.pdf gets created in a subfolder tmp beneath the current folder, not the /tmp (under root). I think this is an important bug because many times temporary files must be created in the /tmp.

nlooije commented 2 years ago

I am also running into this bug. Any workaround available?