Files
shiny/examples/01_allcaps/app.R
Joe Cheng 04081ec2d3 Integrate UI builder into Shiny
Replace example #1 HTML with builder
2012-07-18 15:27:27 -07:00

23 lines
353 B
R

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