Error with Cairo package in shinyapps.io

My app runs perfectly fine locally. It used to run normally on shinyapps.io, but when I tried to deploy a straightforward update to the underlying data file, the app stopped working. The deployment itself was fine, but the app now returns an error whenever it tries to generate a plot using the Cairo package.

I copied the error message from the logs below. Looks like there's a missing file somewhere. Any suggestions?

shinyapps: Warning: Error in : .onLoad failed in loadNamespace() for 'Cairo', details:
shinyapps: call: dyn.load(file, DLLpath = DLLpath, ...)
shinyapps: error: unable to load shared object '/usr/lib/R/Cairo/libs/Cairo.so':
shinyapps: libharfbuzz-icu.so.0: cannot open shared object file: No such file or directory

Hello

It looks like this R package has some system dependencies that are not included in shinyapps.io by default. We have a GitHub repository that can be used to had dependencies for packages like this if you wanted to create a pull request for what is required. See GitHub - rstudio/shinyapps-package-dependencies: Collection of bash scripts that install R package system dependencies for details.

thanks
sam

add Cairo by michaelmayer2 · Pull Request #383 · rstudio/shinyapps-package-dependencies · GitHub - once approved, your app will work agaon.

Michael's PR has merged, however our internal QA and deployment processes still need to complete. I or someone from my team should post back here when this fix is available in shinyapps.io.