plotly.R
plotly.R copied to clipboard
plotly_IMAGE stopped working
Hello, I am not sure if the server is undergoing maintenance. Function plotly_IMAGE suddenly stopped working yesterday. It worked for like 6 or 7 graphs and now returns error [502].
BTW, as a side note, I really would like to have easier options to saving static plotly graphs as PNG. I spent so many hours with this, I tried Orca, Kaleido (which requires installing reticulate, miniconda etc), never made these work because of multiple installing problems, like my user has a space character and miniconda won't install. Anyways, multiple bugs in the process, to finally find the plotly_IMAGE function that somehow worked. I really feel like getting static images is an important feature for R, where many users are forced to used latex to report our works later. Let me know if I can help with this in any way.
The error is:
plotly_IMAGE(global_return_graph, format = 'png', out_file = file.path(savep$
# > Request failed [502]. Retrying in 1.6 seconds...
# > Request failed [502]. Retrying in 1.7 seconds...
# > Request failed [502]. Retrying in 3.9 seconds...
# > Request failed [502]. Retrying in 2.8 seconds...
The same code was working before and just stopped.
HI, tomasnobrega. I get same problem. Have you figured it ou?
I gave up. I am doing the graphs with ggplot2
, to save ggsave(p)
and if I want dynamic plot from plotly I run ggplotly(p)
I have solved such problem with Kaleido as described in this website https://search.r-project.org/CRAN/refmans/plotly/html/save_image.html