From the course: Building Data Apps with R and Shiny: Essential Training

Unlock the full course today

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

Run Shiny apps on your own machine

Run Shiny apps on your own machine

From the course: Building Data Apps with R and Shiny: Essential Training

Start my 1-month free trial

Run Shiny apps on your own machine

- [Narrator] Let's be explicit about what we mean by running Shiny apps on our local machine. First of all, what is our local machine? Well, the local machine is the one in front of you, and it's where we're going to run our Shiny app, it's where it's going to be hosted, and it's where our Shiny app is going to be viewed. Let's go to our exercise files to run a Shiny app on our local machine. So we'll go to folder 01_04, and we're going to open our R Studio project. We have, inside of our folder, a split file Shiny app. We have a ui.R file and a server.R file. If we open either of these files up, let's choose ui.R, R studio inserter Run App button here, and this is how we run our Shiny app. We have a ui.R file, and a server.R file. We open either of those files up and we click Run App. That runs our Shiny app, and we can now interact with it, so we can select a Continent and we can select a year. That's how we run a Shiny app on our local machine.

Contents