it depends on your code.
In computing there is no free lunch, so there are tradeoffs to be made between memory/compute time etc. ; One has the option of focusing towards memory optimisation and do quite well with R shiny.
I've recently had an experience myself of developing an App without having had memory as a partular concern, and now having to rearchitect parts to be more memory efficient.