In this question Exporting PNG files from Plotly to R I asked how to export Plotly graphics to disk.
I used the plotly_IMAGE function, but the latter found that the function uses Plotly internet servers.
The question is that Plotly JavaScript is now local, how can I create a local png file without the Internet?
I tried this code without success:
library(plotly) png(filename = "test.png") plot_ly(x = 1:10) dev.off()
The idea is to make it programmatic, without clicking the export button on the chart.
Murta source share