As we develop Shiny apps, we're finding package overhead becoming more and more of an issue when deploying apps in Docker containers, especially in ShinyProxy when each user gets their own container. The process for monitoring how much memory an installed package takes up we have right now is to build a Docker image, run it, and see how much memory is used (via docker stats
) before loading the app.
Is there a better way to go about measuring this? Any tips for reducing package overhead?