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

Unlock the full course today

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

Programmatically deploying apps

Programmatically deploying apps

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

Start my 1-month free trial

Programmatically deploying apps

- [Instructor] Often, you'll want to programmatically deploy or update your Shiny apps without having to open up RStudio and click on the publish button. So, let's go through how we would do that in our exercise files. So, let's go to folder 10_04 and open up our RStudio project. If we look in the Files tab, we can see we have a folder called the shiny app, and if we click inside of here, we can see our distinctive UI and servitor R file. Let's go up one directory by clicking on the period period, and so this exercise is trying to replicate what you might have on your machine with a folder or many folders containing Shiny apps. Let's write a script file for deploying our Shiny app. So, let's go to File, New File, and R Script. Let's save this script as deploy - app. We're going to load the tidyverse at the script file just in case there's any data processing or data wrangling we need to do. And we're also going to load the rsconnect package. The function that we use to deploy our apps…

Contents