Skip to content
jcheng5 edited this page Sep 7, 2012 · 4 revisions

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?

We're working on a hosting service and standalone Shiny server, stay tuned.

Clone this wiki locally