From the course: Creating Interactive Presentations with Shiny and R

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

shinyAppDir

shinyAppDir

From the course: Creating Interactive Presentations with Shiny and R

Start my 1-month free trial

shinyAppDir

- How do you embed a split-file Shiny app within a r markdown presentation file? Well, you do that with the shinyAppDir function. Let's see that in the exercise files. We'll go over to our studio. We'll go to project in the top right hand corner, open project, and we'll navigate to our exercise files under desktop. And we're 06_04, and we'll open up our project file. So you can see what I have here is a slidy presentation, defined on line three, and it's in the runtime shiny, and you can also see on line five that I'm loading in my own css file here, complex-css. You'll notice that in the setup code chunk, I've set echo to be true, so I have the output shown for all of my code chunks, and let's just run the presentation straight away to see how the file looks. So if I maximize this, I press the "c" key to bring up the table of contents, and I move to my slide with the shiny dashboard included. We can see a bit of code necessary to include my Shiny app. I first load a shiny library…

Contents