Using pagedown::chrome_print() in shinyapps.io

Hello ! I'm trying to deploy an app on shinyapps.io. It uses rmarkdown and pagedown to render a pdf based on html created by the .Rmd file. But it fails to render it.
The app log shows this message:
Warning: Error in is_remote_protocol_ok: Cannot find headless Chrome after 20 attempts
I guess it is because it cannot find chrome on the shinyapps server, but pagedown package seems to be supported on shinyapps, according to this:
https://github.com/rstudio/shinyapps-package-dependencies/tree/master/packages
I read that I have to use chrome_print(async=T), I've done it but it still doesn't work.
So how can I solve this issue ??
Any help would be much appreciated

1 Like

I believe this maybe have something to do with running inside a shinyapp container. Maybe try with

extra_args = c("--disable-gpu", 
                 "--no-sandbox")

As described in pagedown documentation, it worked for me.

It worked ! Thanks a lot !

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.