orca icon indicating copy to clipboard operation
orca copied to clipboard

orca in R failed

Open brainfo opened this issue 3 years ago • 1 comments

I used rstudio-server with rmarkdown. and I just wrote orca(fig, "time_vocano.pdf") in .Rmd file. the error is this:

Warning: 'orca' is deprecated.
Use 'kaleido' instead.
See help("Deprecated")

Error: System command 'orca' failed, exit status: -5, stderr:
E> No protocol specified
E> Unable to init server: Could not connect: Connection refused
E> No protocol specified
E> Unable to init server: Could not connect: Connection refused
E> No protocol specified
E> 
E> (orca:1940217): dbind-WARNING **: 14:28:00.289: Could not open X display
E> 
E> (orca:1940217): dbind-ERROR **: 14:28:00.293: AT-SPI: Couldn't connect to accessibility bus. Is at-spi-bus-launcher running?

 Stack trace:

 1. plotly:::orca(fig, "time_vocano.pdf")
 2. plotly:::orca_available()
 3. plotly:::correct_orca()
 4. processx::run("orca", "-h")
 5. throw(new_process_error(res, call = sys.call(), echo = echo,  ...

 x System command 'orca' failed, exit status: -5, stderr:
E> No protocol specified
E> Unable to init server: Could not connect: Connection refused
E> No protocol specified
E> Unable to init server: Could not connect: Connection refused
E> No protocol specified
E> 
E> (orca:1940217): dbind-WARNING **: 14:28:00.289: Could not open X display
E> 
E> (orca:1940217): dbind-ERROR **: 14:28:00.293: AT-SPI: Couldn't connect to accessibility bus. Is at-spi-bus-launcher running? 

should I use orca_server? Or what could I do to export static figures from R-plotly? Thanks!

brainfo avatar Mar 21 '22 13:03 brainfo

Looking to bump this. Did kaleido work for you? Do people have another solution for Plotly in R?

djsmith17 avatar May 14 '25 14:05 djsmith17