library(shiny)
shinyServer(function(input, output){
output$review <- renderText({
paste(input$who,
"thinks shiny is", input$rating)
})
})
library(shiny)
shinyUI(pageWithSidebar(
# Application title
headerPanel("Simple Shiny Demo: Text"),
# Sidebar with controls
# one control for first word (enter text in text box)
# one control for last phrase (select the input)
sidebarPanel(
textInput("who", "Reviewed by", "None of us"),
selectInput("rating", "Rating",
c("Hard", "Easy", "Lame", "The Coolest Thing Ever!", " "),
selected=" ")
),
# Main Panel setup prints the text output from server.R
mainPanel(
h3(textOutput("review"))
)
))