R Shiny Apps Tutorial | Deploy & Share Shiny Apps online | install required packages and publish app

Опубликовано: 15 Октябрь 2024
на канале: Abhinav Agrawal
21,390
130

Hello, welcome to this video.
In this video we will install the required packages (primarily the rsconnect package), add shinyapps.io account and try to deploy the app. rsconnect package helps to establish connection between R Studio and shinyapp.io user account. I am in R Studio. We have shiny apps example files here which we would like to deploy. We will use the publish application menu option. Publish Application menu can be located beside the Run App button in R Studio.
Click the publish application button and it will prompt us to install required packages. Click YES to begin the installation.
Since I already have the account set up it shows me the existing account here which I can use to deploy the app. However, for the sake of this tutorial let us add the account which we created with shinyapp.io in the previous video. Add title to the app, click on add new account and then select Shinyapps.io. This will prompt us to enter the secret key.
Login to the shinyapps.io account. Click on the top right image icon and select token.
Click on show and then show secret. Copy this entire rsconnect function and paste in R Studio, click on connect account. This will set up and add a new account to R Studio which we can use to deploy.
Select on the account where we would like to deploy. We already have the app title filled. Now click on the publish button.
We can see the logs showing the status in the console.
And we see that shiny app is finally deployed and opens in the browser. We can use this URL and share our shiny app with others.

For any questions or consultation, contact me on GMAIL at aagarw30.

Linkedin:
  / abhinav-agrawal-pmp%c2%ae-csm%c2%ae-itil%c...  

Github:
https://github.com/aagarw30/R-Shinyap...