-
-
Notifications
You must be signed in to change notification settings - Fork 41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
running from within R produces no PNG #119
Comments
Does library(plotly)
p <- plot_ly(x = 1:10, y = 1:10, color = 1:10)
b <- plotly_build(p)$x[c("data", "layout")]
json <- plotly:::to_JSON(b)
cmd <- sprintf("orca graph '%s' -o r-export-test.png", json)
system(cmd) as in our quick start instructions work for you though? |
@etpinard: Yes it does, but this is a much more basic plot and |
Have you tried the new |
It throws
instead of using my local installation of orca |
Are you trying to export a Now, maybe the R api wants you to have |
I honestly don't even know what a
But shouldn't command line |
This is very weird: Now, I am also not able to get the PNG when running orca graph /tmp/test.json -o /tmp/model.png but cd /tmp && orca graph test.json -o model.png && cd - works. So I went ahead and tried system("cd /tmp && orca graph test.json -o model.png") and I got the PNG! Should I close this issue and open a new one or just change this issues title to further investigate? |
This appears like a duplicate of #101 |
I can confirm that I indeed had a |
I am trying to render a 3D plotly plot I made in R statically from different angles as PNG files.
I managed to dump the plotly object to a JSON file but running
system("orca graph /tmp/test.json -o /tmp/model.png")
does not produce the PNG file.
It runs for ~3sec and finishes but all it leaves behind is an empty
/tmp/orca-build
directory.Surprinsingly, running
(copy/paste-ed from R, just to be sure) from shell works produces the correct PNG file.
Any clues what is going on?
I want to generate many PNGs to use them as frames for a video, so being able to do this from an R loop would be much more convenient than looping in R to create many JSONs and looping again in shell to convert them all.
The text was updated successfully, but these errors were encountered: