Shiny Exercise 1

New Shiny App

Published

May 5, 2025

Create a new shiny app.

  1. In R script, start typing shinyapp and select the shinyapp snippet.

library(shiny)

ui <- fluidPage(
  
)

server <- function(input, output, session) {
  
}

shinyApp(ui, server)
  1. Save the file and click the “Run App” button. You should see a blank app and no errors!
  2. Add some text inside the ui element, e.g., “Hello World!”. Save and click the “Reload App” button”.
Click to Check the Complete Shiny App Code!
library(shiny)

ui <- fluidPage(
  "Hello world!"
)

server <- function(input, output, session) {
  
}

shinyApp(ui, server)
Back to top