शुरू करेंमुफ़्त में शुरू करें

"Hello, World" app input (UI)

The "Hello, World!!!" app, while enthusiastic, could be more fun. Extend the app and have it wish a hello to a specific person. A user will enter a name and the app will update to wish that name "Hello".

For users to enter text, you'll have to use a text-specific shiny input function to capture it. Recall that shiny makes available a number of input functions depending on what kind of input you'd like to capture from your users.

shiny has been pre-loaded for you.

यह अभ्यास पाठ्यक्रम का हिस्सा है

Building Web Applications with Shiny in R

पाठ्यक्रम देखें

अभ्यास निर्देश

  • Add a text input to the UI called "name" along with an informative label for your user.

इंटरैक्टिव व्यावहारिक अभ्यास

इस अभ्यास को इस नमूना कोड को पूरा करके आज़माएँ।

ui <- fluidPage(
	# CODE BELOW: Add a text input "name"
  
)

server <- function(input, output) {
  
}

shinyApp(ui = ui, server = server)
कोड संपादित करें और चलाएँ