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.

Clone this wiki locally