Publish on shinyapp.io automatically

I want it to be published automatically every 24 hours. Is there a way?

You could create a script to publish programmatically and schedule that script to run every 24h in some machine but that sounds like an unnecessary thing to do, if you need a update your data, there are more efficient approaches.

https://shiny.rstudio.com/articles/persistent-data-storage.html