-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathui-start.R
46 lines (45 loc) · 1.39 KB
/
ui-start.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
get_start_ui <- function() {
fluidPage(
titlePanel("Upload"),
sidebarLayout(
sidebarPanel(
fileInput(
inputId = "spectral_data_upload",
label = "Select spectral files",
multiple = TRUE),
fileInput(
inputId = "attrib_data_upload",
label = "Select attribute data (optional)",
multiple = FALSE,
accept = "text/csv"),
selectInput(
inputId = "spectral_data_type",
label = "File types",
choices = c("Spectrawiz (.TRM, .IRR, .etc)" = "spectrawiz",
"ASD Binary files" = "asd",
"Long form" = "long",
"Wide form" = "wide"),
multiple = FALSE),
fileInput(
inputId = "fieldmap_upload",
label = "Select fieldmap data (optional)",
multiple = TRUE,
accept = "text/csv"),
actionButton(
inputId = "spectral_data_upload_button",
label = "Process uploaded data"
),
shinyjs::useShinyjs(),
shinyjs::extendShinyjs(text = "shinyjs.refresh = function() { location.reload(); }"),
actionButton(
inputId = "upload_reset_button",
label = "Reset"
)
),
mainPanel(
htmlOutput("welcome_text"),
downloadLink("download_example_data", "Download")
)
)
)
}