-
Notifications
You must be signed in to change notification settings - Fork 1.9k
FAQ
How can I include a Shiny application in my package? Do I need to write ui.R and server.R files to a temporary directory?
The easiest way is to put ui.R and server.R files in your package's inst
directory, and at runtime, use system.file('inst', package=mypackage)
to find the full path of that directory. You should be able to use that path with shiny::runApp
just fine.
How can I make some controls appear/disappear from the UI in response to the state of other controls?
See the documentation for conditionalPanel
(new in Shiny 0.1.5). The same technique can be used from straight HTML on any element, using the data-display-if
attribute.
How can I dynamically populate my UI from the server?
New in Shiny 0.1.5: you can combine an htmlOutput
in ui.R (or .shiny-html-output
in index.html) with a reactiveUI
output in server.R. As of this writing, we're not sure how useful this technique will end up being, so if you try it and have feedback please let me know.
How can I deploy my Shiny applications on the web, so anyone with a browser can use them?
See the "Deploying Shiny Apps" section at http://www.rstudio.com/shiny/ for details on the current ways to host a Shiny App publicly. In brief, you can either use our subscription based service (currently in beta, registration available at the link above), or you can deploy your own server using our open source Shiny Server application.