This repository was archived by the owner on Jan 20, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapp.r
More file actions
62 lines (46 loc) · 1.3 KB
/
app.r
File metadata and controls
62 lines (46 loc) · 1.3 KB
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
# Load needed packages
library(shinydashboard)
library(shiny)
library(shinyjs)
library(leaflet)
library(DBI)
library(DT)
library(rhandsontable)
library(htmltools)
library(jpeg)
source("./R/creds.R", local = TRUE)
source("./R/global.R", local = TRUE)
source("./R/about.R", local = TRUE)
#### Header ####
source("./R/header.R", local = TRUE)
#### Sidebar ####
source("./R/sidebar.R", local = TRUE)
#### Body ####
source("./R/body.R", local = TRUE)
ui <- dashboardPage(header, sidebar, body, skin = "black")
#### Server side ####
server <- function(input, output) {
#### About ####
source("./R/about.R", local = TRUE)
#### Data explorer ####
source("./R/explore_map.R", local = TRUE)
#### Data input ####
# Input form
source("./R/input_form.R", local = TRUE)
# Dynamic display of morphology input fields
source("./R/input_form_morphology.R", local = TRUE)
#### Records browser ####
source("./R/browser.R", local = TRUE)
#### Querying database #### TO-DO: Limit query expressions ####
source("./R/build_query.R", local = TRUE)
#### Settings ####
#### How-to ####
source("./R/howto.R", local = TRUE)
#### Tables ####
source("./R/manage_tables.R", local = TRUE)
#### End session ####
onSessionEnded(function() {
dbDisconnect(con)
})
}
shinyApp(ui, server)