-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtab-summary.R
77 lines (75 loc) · 3.28 KB
/
tab-summary.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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
tabsummary <- tabPanel(
"Summary",
br(),
fluidRow(
column(2,
div(style = "margin-top:-20px"),
wellPanel(
h2("Fields"),
fluidRow(
column(6, actionButton("selectfieldsbtn", "Select", title = "Choose fields to display")),
column(6,
actionLink("selectnofieldslink", "None", title = "Unselect all fields"), br(),
actionLink("selectdefaultfieldslink", "Default", title = "Select default fields"), br(),
actionLink("selectallfieldslink", "All", title = "Select all fields"))
),
br(),
h2("Analyses"),
fluidRow(
column(6, actionButton("selectanalysesbtn", "Select", title = "Choose analyses to display")),
column(4,
actionLink("selectnoanalyseslink", "None", title = "Select no analyses"), br(),
actionLink("selectallanalyseslink", "All", title = "Select all analyses")
)
),
conditionalPanel("output.summaries == 'true'",
br(),
fluidRow(
column(6, ""),
column(4, actionLink("clearallanalyseslink", "Clear", title = "Clear all analyses"))
)
),
br(),
h2("Download"),
fluidRow(
column(6, downloadButton("downloadSummaryrds", ".rds",
title = "Save as RDS file; restore in R with e.g., readRDS(`summary.rds')")),
column(6, downloadButton("downloadSummary", ".csv",
title = "Save as comma-delimited text (csv) file"))
),
fluidRow(
column(12, checkboxInput("keepselectedbox", "Keep only selected analyses", FALSE ))
)
),
fluidRow(
column(5, offset=1,
conditionalPanel("output.selectingfields == 'TRUE'",
checkboxGroupInput("fields1", "",
choices = summaryfields[fieldgroup1],
selected = defaultfields1
)
)
),
column(6,
conditionalPanel("output.selectingfields == 'TRUE'",
checkboxGroupInput("fields2", "",
choices = summaryfields[fieldgroup2],
selected = defaultfields2
)
)
)
),
fluidRow(
column(6, offset = 1,
conditionalPanel("output.selectinganalyses == 'TRUE'",
checkboxGroupInput("analyses", "", choices = character(0))
)
)
)
),
column(10,
# h2("Results"),
div(tableOutput("summarytable"), style = "width:100%; overflow-x: scroll")
)
)
)