Skip to content
jcheng5 edited this page Aug 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?

The only way to do this right now is using JavaScript, but we're working on some ways to do this easily within R.

Clone this wiki locally