-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest.R
29 lines (29 loc) · 893 Bytes
/
test.R
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
runApp(list(
ui = pageWithSidebar(
headerPanel("Test"),
sidebarPanel(
#tags$head(tags$style(type="text/css", "
# loadmessage {
# position: fixed;
# top: 0px;
# left: 0px;
# width: 100%;
# padding: 5px 0px 5px 0px;
# text-align: center;
# font-weight: bold;
# font-size: 100%;
# color: #000000;
# background-color: #CCFF66;
# z-index: 105;
# }
# ")),
numericInput('n', 'Number of obs', 100),
conditionalPanel(condition="$('html').hasClass('shiny-busy')",
tags$div("Loading...",id="loadmessage"))
),
mainPanel(plotOutput('plot'))
),
server = function(input, output) {
output$plot <- renderPlot({ Sys.sleep(2); hist(runif(input$n)) })
}
))