Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Run App Option not showing on the Pane, #R

Tags:

r

shiny

I am learning about shiny dashboards, I am unable to find run app option which comes at the pane where we write our code the run app option is not visible. Kindly assist to enable the same.

like image 363
mayank14 Avatar asked Oct 17 '25 02:10

mayank14


1 Answers

For Rstudio to display the run app button, it needs to recognize your script as a shiny app. One of the easiest way in Rstudio would be to go to file --> new file--> Shiny web app, since Rstudio would create the app.R file for you (by now you should see the run app button).

If you are working with a ui.R and server.R file, you should add the following line at the end of your server.R file:

shinyApp(ui = ui, server = server)
like image 106
TimK Avatar answered Oct 18 '25 16:10

TimK



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!