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.

Add a shinyApp to a presentation

Add a shinyApp to a presentation

From the course: Creating Interactive Presentations with Shiny and R

Start my 1-month free trial

Add a shinyApp to a presentation

- [Voiceover] Let's add a simple ShinyApp to an R mark down presentation file. Let's go over to RStudio and let's open up the exercise for this video. So we'll open up the project by going to the top right-hand corner of RStudio, selecting open project, navigating to the desktop, the exercise files, and 04_02 and choosing that project. Inside of that project, we've got two R mark down files that begin in and end state and we're going to open both of those. We start with the begin file and what we're gonna do in this R mark down presentation is visualize a curve. So if I scroll down in a presentation to line 14, we can see a code chunk called curve static. This is the expression that I want to make interactive. If I just evaluate line 15 briefly, we can see how this expression will look. And what we want to do is build a ShinyApp which allows us to change the exponent here. In order to do that, we need to use the ShinyApp function. If we scroll down to line 23, we can see our code…

Contents