-
Notifications
You must be signed in to change notification settings - Fork 1
/
app.R
80 lines (66 loc) · 1.93 KB
/
app.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
78
79
80
## App file for NARWSS & RWSAS APPs
## Leah Crowe
# Global ----
#Sys.setenv(ORACLE_HOME="/ora1/app/oracle/product/11.2.0/dbhome_1") #220707 HJF change with continued ODBC connection issues
source('./scripts/global_libraries.R', local = TRUE)$value
if (file.exists('./scripts/creds.R') == TRUE) {
source('./scripts/creds.R', local = TRUE)$value
}
# User interface ----
ui <- dashboardPage(
dashboardHeader(title = "NERW Shiny"),
# Sidebar content
dashboardSidebar(
sidebarMenu(
menuItem(
icon = icon("plane"),
"Aerial Survey Data Processing",
tabName = "NARWSS"
),
menuItem(
icon = icon("calendar"),
"Trigger Analysis",
tabName = "Trigger"
),
menuItem(
icon = icon("camera"),
"Photo Position Finder",
tabName = "Photo"
),
menuItem(
icon = icon("ship"),
"SLOW zone viewer",
tabName = "szone"
),
menuItem(
icon = icon("question"),
text = "Instructions Wiki",
href = "https://github.com/leahcrowe/narwss_rwsas_apps/wiki"
)
)
),
## Body content
dashboardBody(
htmltools::tagList(tags$img(src = 'noaanefsclogo.PNG'), br()),
tags$head(tags$link(
rel = "icon", type = "image/png", href = "favicon.png"
)),
tabItems(
# First tab content
tabItem(tabName = "NARWSS",
source('./scripts/NARWSSapp.R', local = TRUE)$value),
# Second tab content
tabItem(tabName = "Trigger",
source('./scripts/trigger_app.R', local = TRUE)$value),
# Third tab content
tabItem(tabName = "Photo",
source('./scripts/photo_app.R', local = TRUE)$value),
# fourth tab content
tabItem(tabName = "szone",
source('./scripts/szone_app.R', local = TRUE)$value)
)
)
)
server = function(input, output, session) {
}
shinyApp(ui, server)