Shiny app 'Selected file too large' in RStudio

191 views
Skip to first unread message

lc201203

unread,
Nov 10, 2016, 6:08:16 PM11/10/16
to Shiny - Web Framework for R
I have built a Shiny app that exceeds the 5 MB source editor limitation in RStudio and haven't been able to find much information already out there. The vast majority of the code in my app is dynamic UI elements (namely a lot of renderUI() functions) that respond to user input and update the page accordingly. As far as I know, there is not a way to "function-ize" UI elements within Shiny the way you would be able to in something like AngularJS in order to reduce the file size. What I am wondering is if there is any way to modify the file size limitation in RStudio or if I will have to move to a text editor like Notepad++ to continue working on this app?

migd...@gmail.com

unread,
Nov 20, 2016, 11:28:01 AM11/20/16
to Shiny - Web Framework for R
Try this: 
options(shiny.maxRequestSize=300*1024^2)   # change the number if needed

Joe Cheng

unread,
Nov 20, 2016, 11:59:30 AM11/20/16
to migd...@gmail.com, Shiny - Web Framework for R
You absolutely can use functions in both UI and server side of Shiny apps. In this case I suspect you want to use modules.
http://shiny.rstudio.com/articles/modules.html

5mb is a truly astounding amount of source code for a single app. Would you be able to share what you are doing and what some of you renderUI looks like?
--
You received this message because you are subscribed to the Google Groups "Shiny - Web Framework for R" group.
To unsubscribe from this group and stop receiving emails from it, send an email to shiny-discus...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/shiny-discuss/d84f7de5-206b-4d17-8c54-af86c45955e2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages