Files
shiny/examples/01_allcaps/app.R
2012-07-19 06:57:00 -07:00

23 lines
364 B
R

library(shiny)
client <- clientPage(
h1("Example One: All Caps"),
p(
"Input:", br(),
input(name='val', type='text', value='Hello World!')
),
p(
"You said:", br(),
shinyText("valUpper")
)
)
server <- function(input, output) {
output$valUpper <- reactive(function() {
toupper(input$val)
})
}
runApp(client, server, port = 8300)