You are able to install R packages used by your Shiny app, not arbitrary software.
If you need a server to clean data on a regular basis, you could host such a thing in AWS or Digital Ocean, and then write the data to a database that you allow
shinyapps.io to access.
If the cleaning is less regular, you could create a process locally to clean it, and bundle it with your application, re-deploying the application when there is new data.