Search code examples
shinywebshot

appshot does not display graph on debian 11


I try to use appshot to take an image from a shiny app. It works well on Windows, but not on my Debian server. If I try this:

  appdir <- system.file("examples", "01_hello", package = "shiny")
  appshot(appdir, "01_hello.png")

this gives this:

webshot_without_graph (without the graph)

My server is Debian 11.5 with:

If anyone can help me. Thanks a lot.


Solution

  • I install the 2.1.1 version of phantomjs.

    Follow this https://gist.github.com/julionc/7476620 but replace 1.9.8 by 2.1.1.

    It works !