BaşlayınÜcretsiz Başlayın

An empty shinyApp

At this point, you know what makes a shinyApp. For starters, you can first set up an empty shinyApp just as we did in the video.

To do this, recall the restaurant analogy where the app user is like the patron, the UI is like the table at which the patron is sitting at, and the server is like the helpful waiter.

In the exercise, you will need to identify these components to render a blank shinyApp.

Bu egzersiz

Building Dashboards with shinydashboard

kursunun bir parçasıdır
Kursu Görüntüle

Egzersiz talimatları

  • Set the title as "Sleeping habits in America" in the titlePanel() function, and store fluidPage() as ui.
  • Store the empty custom function as server.
  • Add the ui and server as arguments to shinyApp().

Uygulamalı interaktif egzersiz

Bu örnek kodu tamamlayarak bu egzersizi bitirin.

library(shiny)
# Add a title and store as ui
___ <- fluidPage(titlePanel(___))
# Store empty custom function as server
___ <- function(input, output){
}
# Enter the arguments for shinyApp()
shinyApp(___, ___)
Kodu Düzenle ve Çalıştır