forked from USEPA/Water-Quality-Data-Analysis-Tool
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathglobal.R
73 lines (38 loc) · 1.69 KB
/
global.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
library(data.table)
library(dplyr)
library(ggplot2)
library(htmltools)
library(leaflet)
library(magrittr)
library(rCharts)
library(rkt)
library(scales)
library(shiny)
library(shinyBS)
library(shinydashboard)
#library(sparkline)
library(stringr)
library(grid)
# Sourcing functions files
source("external/Functions/functions.R")
# Sourcing module files
source("external/Modules/fileUpload.R")
source("external/Modules/button.R")
# File with the sidebar code
source("external/tabUI/sidebar.R", local = TRUE)
# The separate files composing the panels
homePanel <- source("external/tabUI/home.R", local = TRUE)$value
instructionsPanel <- source("external/tabUI/instructions.R", local = TRUE)$value
dataUploadPanel <- source("external/tabUI/dataUpload.R", local = TRUE)$value
#templatePanel <- source("external/tabUI/templates.R", local = TRUE)$value
stationsPanel <- source("external/tabUI/stationsTab.R", local = TRUE)$value
assessmentUnitsPanel <- source("external/tabUI/assessmentUnitsTab.R", local = TRUE)$value
criteriaPanel <- source("external/tabUI/CriteriaTab.R", local = TRUE)$value
analysisPanel <- source("external/tabUI/analysisTab.R", local = TRUE)$value
mapPanel <- source("external/tabUI/mapTab.R", local = TRUE)$value
chartPanel <- source("external/tabUI/chartTab.R", local = TRUE)$value
tablePanel <- source("external/tabUI/tableTab.R", local = TRUE)$value
assessUPanel <- source("external/tabUI/assessUTab.R", local = TRUE)$value
metalsPanel <- source("external/tabUI/metalsAnalysis.R", local = TRUE)$value
# Import the metals criteria file
metalsCriteria <- read.csv("external/Metals_Analysis_Example.csv")