mirror of
https://github.com/rstudio/shiny.git
synced 2026-04-07 03:00:20 -04:00
23 lines
364 B
R
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)
|