I've run into an issue with zipping files for download from a shiny app. This appears to be recent issue and everything was working until this issue being noticed a few days on a deployed app. The app.R code below allows a zipped folder to be downloaded. But when deployed on shinyapps.io the zipped folder cannot be downloaded. The logs from shinyapps.io show the error:
sh: 1: /usr/bin/zip: not found
Warning in system2(zip, args, input = input) : error in running command
It appears the path to the zip library cannot be found. Adding which zip in the app code below shows a non zero exit ('1') in the logs, I think this means a zip library path cannot be found on the shiny server. Looking at the documented list of installed system dependency in Appendix 10 in the shiny User Guide shows that zip library should be available. It appears something is preventing zip function finding the path to the zip system library on the shiny server? But I have no idea how to fix this.
Having a similar error here on one of my apps. Interestingly though, zip downloading appears to be working on a previously deployed app. Going to try and redeploy the app to a new instance and see if zip downloading breaks.
Thanks for verify other options. I also tested a version without setwd() as sometimes changing the working directory can cause problems. I've posted an issue on shinyapps-package-dependencies