Hi,
I have a shiny app that I'm publishing to an RStudio Connect server and I would like to have the option to download as PDFs the plotly
figures that the app generates (in a reactive
called out.plot()
)
This is the downloadHandler
code I'm using:
output$savePDF <- downloadHandler(
filename = function() {
paste0("figure_", Sys.Date(),".pdf")
},
content = function(file) {
plotly::orca(out.plot(),file=file)
}
)
But on the Connect Server clicking the save button results with the error:
Error in : The orca command-line utility is required for this functionality.
I do have the orca-1.3.1.AppImage
executable in the app code directory, which I'm including in the list of files I'm publishing, but I guess I need to point to it somehow so that it will be found on the Connect server.
Any idea?